Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
235 commits
Select commit Hold shift + click to select a range
758f82c
Couple of functions used for Magic Coat
Aug 31, 2024
4ec4962
fix
Sep 1, 2024
42850f4
format
Sep 1, 2024
2d2a498
format
Sep 1, 2024
a43f9a8
test
Sep 1, 2024
95e7bcc
format
Sep 1, 2024
8c14d2d
Some hidden stairs functions
Sep 2, 2024
ceeaee6
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Sep 2, 2024
13ccebe
;
assidion2 Sep 2, 2024
325874c
rename
assidion2 Sep 2, 2024
e073de4
test
assidion2 Sep 2, 2024
5392341
format
assidion2 Sep 2, 2024
b4bb64e
format
UsernameFodder Sep 2, 2024
fb84876
Add param names to prototypes
UsernameFodder Sep 2, 2024
d1bff23
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Sep 6, 2024
caf29e4
Merge branch 'master' of https://github.com/assidion2/pmdsky-debug
assidion2 Sep 6, 2024
81ffc75
Monster initialization functions
assidion2 Sep 6, 2024
d5565bd
format
assidion2 Sep 6, 2024
06ad07a
desc
assidion2 Sep 6, 2024
529d502
Update headers/functions/overlay29.h
assidion2 Sep 7, 2024
32d31fc
Update symbols/overlay29.yml
assidion2 Sep 7, 2024
112304c
format
assidion2 Sep 7, 2024
a1d0ba7
Maaerge branch 'master' of https://github.com/assidion2/pmdsky-debug
assidion2 Sep 7, 2024
823d3e5
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Sep 10, 2024
e097d48
Maaerge branch 'master' of https://github.com/UsernameFodder/pmdsky-d…
assidion2 Sep 22, 2024
2c83d2c
Animation research + misc.
assidion2 Sep 23, 2024
2c9509e
comment length fix
assidion2 Sep 24, 2024
0a9d808
comment length fix
assidion2 Sep 24, 2024
ec37bf6
some more fields
assidion2 Sep 24, 2024
eefe0d8
some more fields
assidion2 Sep 24, 2024
5ad6a36
format
UsernameFodder Sep 25, 2024
2f9daa2
Overlay31 research
assidion2 Oct 1, 2024
93ed454
iiii:Merge branch 'master' of https://github.com/assidion2/pmdsky-debug
assidion2 Oct 1, 2024
10a3604
a
assidion2 Oct 1, 2024
d4e6351
ram
assidion2 Oct 1, 2024
6ed5505
spacing
assidion2 Oct 1, 2024
d7aedce
spacing
assidion2 Oct 1, 2024
e492266
spacing
assidion2 Oct 1, 2024
7541775
spacing
assidion2 Oct 1, 2024
77d6e68
warp zone
assidion2 Oct 1, 2024
03e28e7
heap
assidion2 Oct 1, 2024
bdc6aef
Update ram.yml
assidion2 Oct 2, 2024
59e76e4
Some functions related to badges/ranks
assidion2 Oct 8, 2024
c895a84
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Oct 8, 2024
50c29b1
Update symbols/arm9.yml
assidion2 Oct 13, 2024
0c4168d
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Dec 2, 2024
f4d2cc3
new functions
assidion2 Dec 4, 2024
510f369
spacing
assidion2 Dec 4, 2024
cfe5ae5
pos
assidion2 Dec 4, 2024
156a45d
is
assidion2 Dec 4, 2024
7348564
fixes
assidion2 Dec 4, 2024
0b4a267
fix
assidion2 Dec 4, 2024
de4c9bb
test
assidion2 Dec 27, 2024
4c058c4
aaa
assidion2 Dec 27, 2024
8a240e0
aaa
assidion2 Dec 27, 2024
6989455
checks
assidion2 Dec 27, 2024
ed9b7f4
checks
assidion2 Dec 27, 2024
60dd47f
checks
assidion2 Dec 27, 2024
fc71355
checks
assidion2 Dec 27, 2024
9bfa929
checks
assidion2 Dec 27, 2024
2865d2e
checks
assidion2 Dec 27, 2024
bf18dc7
fix
assidion2 Dec 27, 2024
6e52459
fix
assidion2 Dec 27, 2024
f66f035
fog
assidion2 Dec 27, 2024
713e64f
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Feb 2, 2025
51212af
aaaMerge branch 'master' of https://github.com/UsernameFodder/pmdsky-…
assidion2 Feb 5, 2025
2c81628
.
assidion2 Feb 5, 2025
31f30e7
fixes
assidion2 Feb 5, 2025
b1c2045
fixes
assidion2 Feb 5, 2025
60c4156
fix
assidion2 Feb 5, 2025
9fe8f57
fix
assidion2 Feb 5, 2025
dae8543
fix
assidion2 Feb 6, 2025
129e0a5
new
assidion2 Feb 6, 2025
d776c78
fix
assidion2 Feb 6, 2025
f9a570a
fix
assidion2 Feb 6, 2025
15c3858
clang-format
assidion2 Feb 6, 2025
25348a9
lol
assidion2 Feb 6, 2025
4baccc7
info
assidion2 Feb 6, 2025
221f7db
Update symbols/arm9.yml
assidion2 Feb 7, 2025
6bda2f4
changes
assidion2 Feb 7, 2025
4d9b258
changes
assidion2 Feb 7, 2025
ae4c42d
aaa
assidion2 Feb 7, 2025
ed5accf
aaa
assidion2 Feb 7, 2025
c6f82f6
aaa
assidion2 Feb 7, 2025
5dbf0af
new
assidion2 May 16, 2025
99f2f69
spacing
assidion2 May 16, 2025
5811fcc
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 May 16, 2025
098583b
fixes
assidion2 May 18, 2025
b835b63
undefined
assidion2 May 18, 2025
320be40
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Aug 5, 2025
d59fcc8
a
assidion2 Aug 5, 2025
805b4c8
aaa
assidion2 Aug 5, 2025
91fe49f
aaa
assidion2 Aug 5, 2025
cae4500
aaa
assidion2 Aug 5, 2025
7620125
aaa
assidion2 Aug 5, 2025
2ae2063
aaa
assidion2 Aug 5, 2025
07fd967
aaa
assidion2 Aug 5, 2025
89cfcef
aaa
assidion2 Aug 5, 2025
972aecf
aaa
assidion2 Aug 5, 2025
8e7a974
aaa
assidion2 Aug 5, 2025
c723a18
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Aug 9, 2025
6c911e4
t
assidion2 Aug 10, 2025
05ae6c0
corrections
assidion2 Aug 10, 2025
39b1024
aaMerge branch 'master' of https://github.com/UsernameFodder/pmdsky-d…
assidion2 Aug 11, 2025
7cbcd54
a
assidion2 Aug 11, 2025
dab1b9e
a
assidion2 Aug 11, 2025
8661f5e
typo
assidion2 Aug 11, 2025
f15ce0a
a
assidion2 Aug 11, 2025
d3040d7
a
assidion2 Aug 11, 2025
07b9dcc
a
assidion2 Aug 11, 2025
92f271c
a
assidion2 Aug 12, 2025
0853501
a
assidion2 Aug 12, 2025
f887158
a
assidion2 Aug 12, 2025
88b86cf
a
assidion2 Aug 12, 2025
fbcc2da
a
assidion2 Aug 13, 2025
651fe2b
a
assidion2 Aug 13, 2025
dbdfaf7
a
assidion2 Aug 13, 2025
ec36f97
a
assidion2 Aug 13, 2025
1c713f8
a
assidion2 Aug 13, 2025
7c0290e
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-debug
assidion2 Aug 13, 2025
61a3203
a
assidion2 Aug 13, 2025
ef08a50
a
assidion2 Aug 13, 2025
ccf1189
Update arm9.h
assidion2 Aug 13, 2025
fb5fd3c
aaaMerge branch 'master' of https://github.com/UsernameFodder/pmdsky-…
assidion2 Aug 31, 2025
89bcb60
a
assidion2 Aug 31, 2025
e60cebd
a
assidion2 Aug 31, 2025
10cd93c
a
assidion2 Aug 31, 2025
a880af2
a
assidion2 Aug 31, 2025
5aea029
AAA
assidion2 Aug 31, 2025
80976bc
a
assidion2 Aug 31, 2025
6ee130e
a
assidion2 Aug 31, 2025
3751df7
Update symbols/arm9.yml
assidion2 Sep 1, 2025
3a209a2
Update symbols/arm9.yml
assidion2 Sep 1, 2025
c977d95
a
assidion2 Sep 1, 2025
605435d
a
assidion2 Sep 1, 2025
4669215
a
assidion2 Sep 1, 2025
56eb9b9
a
assidion2 Sep 1, 2025
d5b3af2
a
assidion2 Sep 1, 2025
c73a58b
a
assidion2 Sep 1, 2025
a4a3095
a
assidion2 Sep 2, 2025
e8bc1ad
a
assidion2 Sep 2, 2025
a053b90
a
assidion2 Sep 2, 2025
02bb966
a
assidion2 Sep 2, 2025
ac694da
a
assidion2 Sep 3, 2025
27d52b6
a
assidion2 Sep 4, 2025
d15584e
a
assidion2 Sep 4, 2025
042829c
a
assidion2 Sep 5, 2025
2b853a8
a
assidion2 Sep 5, 2025
e477613
a
assidion2 Sep 5, 2025
e539cd6
a
assidion2 Sep 6, 2025
1eac8e9
aaaRevert "a"
assidion2 Sep 13, 2025
936df25
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-deb…
assidion2 Sep 14, 2025
7b4c092
a
assidion2 Sep 14, 2025
9ecad59
a
assidion2 Sep 14, 2025
cb72db7
a
assidion2 Sep 14, 2025
9d0d360
a
assidion2 Sep 14, 2025
f935193
a
assidion2 Sep 14, 2025
c08418f
a
assidion2 Sep 14, 2025
6894d46
a
assidion2 Sep 14, 2025
bb97e87
a
assidion2 Sep 14, 2025
2747ecf
a
assidion2 Sep 14, 2025
d43f581
a
assidion2 Sep 16, 2025
14bc2a8
a
assidion2 Sep 16, 2025
02ad3ad
a
assidion2 Sep 17, 2025
d6ead9a
a
assidion2 Sep 17, 2025
5212ea3
a
assidion2 Sep 17, 2025
0d1d487
a
assidion2 Sep 17, 2025
4432674
a
assidion2 Sep 17, 2025
e6a4767
a
assidion2 Sep 17, 2025
8848b5f
a
assidion2 Sep 17, 2025
e653a1c
a
assidion2 Sep 17, 2025
6fc388d
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-deb…
assidion2 Sep 28, 2025
de83a34
a
assidion2 Sep 28, 2025
ee93925
a
assidion2 Sep 28, 2025
11b5dd7
a
assidion2 Sep 28, 2025
74f9c6c
a
assidion2 Sep 28, 2025
44faf65
a
assidion2 Sep 28, 2025
f4217dc
a
assidion2 Sep 28, 2025
142e549
a
assidion2 Sep 28, 2025
bb12f9d
a
assidion2 Sep 29, 2025
3d6b559
a
assidion2 Oct 5, 2025
664d16d
a
assidion2 Oct 10, 2025
813f168
a
assidion2 Oct 10, 2025
95eb283
a
assidion2 Oct 11, 2025
a645c66
a
assidion2 Oct 11, 2025
128eaf2
a
assidion2 Oct 11, 2025
99edfa7
a
assidion2 Oct 11, 2025
67e47f8
Update overlay31.yml
assidion2 Oct 11, 2025
c15677b
Update arm9.yml
assidion2 Oct 11, 2025
2ea5258
Update arm9.yml
assidion2 Oct 11, 2025
a393514
a
assidion2 Oct 11, 2025
7a73dcb
a
assidion2 Oct 11, 2025
69b0d2f
a
assidion2 Oct 11, 2025
6766bd6
a
assidion2 Oct 11, 2025
d298917
Merge branch 'master' into sep14
UsernameFodder Oct 12, 2025
914aa72
Update symbols/arm9.yml
assidion2 Oct 12, 2025
ae60e38
Update symbols/arm9.yml
assidion2 Oct 12, 2025
4c90458
a
assidion2 Oct 12, 2025
37450db
aaaMerge branch 'sep14' of https://github.com/assidion2/pmdsky-debug …
assidion2 Oct 12, 2025
8e454bd
a
assidion2 Oct 12, 2025
bb2e252
Update arm9.yml
assidion2 Oct 13, 2025
eea25ff
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-deb…
assidion2 Oct 26, 2025
cc899c7
.
assidion2 Oct 29, 2025
c961366
aaaMerge branch 'sep14' of https://github.com/assidion2/pmdsky-debug …
assidion2 Oct 29, 2025
6ac3e5f
.
assidion2 Oct 29, 2025
459e401
.
assidion2 Oct 29, 2025
cefac98
.
assidion2 Oct 31, 2025
3bea68c
.
assidion2 Oct 31, 2025
fdcda40
.
assidion2 Oct 31, 2025
c0d923b
.
assidion2 Oct 31, 2025
0c7d18f
.
assidion2 Oct 31, 2025
6acc4b8
.
assidion2 Oct 31, 2025
3ac4f87
.
assidion2 Oct 31, 2025
e24c8a6
.
assidion2 Nov 1, 2025
9d28d45
.
assidion2 Nov 4, 2025
4c25159
.
assidion2 Nov 4, 2025
4929ec5
.
assidion2 Nov 4, 2025
78a2ae7
.
assidion2 Nov 4, 2025
321db59
.
assidion2 Nov 6, 2025
a3c9c84
.
assidion2 Nov 6, 2025
099bf08
.
assidion2 Nov 6, 2025
7042c87
.
assidion2 Nov 7, 2025
668b3e3
.
assidion2 Nov 7, 2025
b220307
.
assidion2 Nov 7, 2025
2a9309e
.
assidion2 Nov 7, 2025
af55fed
.
assidion2 Nov 8, 2025
b0570d6
Merge branch 'master' of https://github.com/UsernameFodder/pmdsky-deb…
assidion2 Dec 27, 2025
bd0c328
aaaaMerge branch 'master' of https://github.com/UsernameFodder/pmdsky…
assidion2 Mar 13, 2026
a22d616
aaa
assidion2 Mar 13, 2026
dba5846
aaa
assidion2 Mar 13, 2026
2f44c6a
aaa
assidion2 Mar 14, 2026
8b7eed6
aaa
assidion2 Mar 14, 2026
0018af2
aaa
assidion2 Mar 14, 2026
c23529d
aaa
assidion2 Mar 14, 2026
a6fa2e3
aaa
assidion2 Mar 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions headers/data/ram.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ extern struct mem_arena* GROUND_MEMORY_ARENA_1_PTR;
extern struct mem_arena* GROUND_MEMORY_ARENA_2_PTR;
extern bool LOCK_NOTIFY_ARRAY[20];
extern struct mem_arena GROUND_MEMORY_ARENA_1;
extern struct dungeon_button_input DUNGEON_BUTTON_INPUT;
extern struct mem_block GROUND_MEMORY_ARENA_1_BLOCKS[52];
extern uint8_t GROUND_MEMORY_ARENA_1_MEMORY[408324];
extern struct sentry_duty SENTRY_DUTY_STRUCT;
Expand Down
8 changes: 4 additions & 4 deletions headers/functions/arm9.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ void GetDsFirmwareUserSettingsVeneer(struct user_settings* settings);
void Rgb8ToRgb5(struct rgb5* target, struct rgba* source);
float EuclideanNorm(int* vec2);
void ClampComponentAbs(int* vec2, int max);
bool GetHeldButtons(int controller, undefined* btn_ptr);
bool GetPressedButtons(int controller, undefined* btn_ptr);
bool GetHeldButtons(int controller, struct buttons* btn_ptr);
bool GetPressedButtons(int controller, struct buttons* btn_ptr);
bool GetReleasedStylus(undefined* stylus_ptr);
void KeyWaitInit(void);
void DebugPrintSystemClock(void);
Expand Down Expand Up @@ -476,8 +476,8 @@ void LoadWteFromFileDirectory(struct wte_handle* handle, enum pack_file_id pack_
uint16_t file_index, uint32_t malloc_flags);
void UnloadWte(struct wte_handle* handle);
undefined* LoadWtuFromBin(int bin_file_id, int file_id, int load_type);
void ProcessWte(undefined* wte_header_ptr, undefined4 pal_vram_offset,
undefined4 pal_texture_vram_offset_upper, undefined4 pal_texture_vram_offset_lower);
void ProcessWte(undefined* wte_header_ptr, undefined4 texture_vram_offset,
undefined4 pal_vram_offset_upper, undefined4 pal_vram_offset_lower);
void DelayWteFree(struct wte_handle* handle);
void ResetPlannedVramTransfer(struct delayed_texture_vram_container* container);
uint32_t PlanCopyTextureToTextureVram(struct delayed_texture_vram_container* container,
Expand Down
2 changes: 2 additions & 0 deletions headers/functions/overlay29.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ int GetScenarioBalanceVeneer(void);
void FadeToBlack(void);
void SetDungeonEscapeFields(uint32_t successful_exit_tracker, bool end_floor_no_death_check_flag);
uint32_t GetSuccessfulExitTracker(void);
void GetAndStoreButtonInput(void);
bool CheckTouchscreenArea(int x1, int y1, int x2, int y2);
struct trap* GetTrapInfo(struct entity* trap_entity);
struct item* GetItemInfo(struct entity* item_entity);
Expand Down Expand Up @@ -748,6 +749,7 @@ void ActivateSportCondition(bool water_sport);
bool TryActivateWeather(bool param_1, bool param_2);
int DigitCount(int n);
void LoadTextureUi(void);
int GetPaletteBaseAddress(undefined4 pal_vram_offset_upper, undefined4 pal_vram_offset_lower);
int DisplayNumberTextureUi(int16_t x, int16_t y, int n, int ally_mode);
int DisplayCharTextureUi(struct render_3d_element_64* element64, int16_t x, int16_t y, int char_id,
int16_t param_5);
Expand Down
25 changes: 25 additions & 0 deletions headers/types/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -1412,4 +1412,29 @@ struct options {
};
ASSERT_SIZE(struct options, 10);

// This is the layout of all button bitflags in the input/controller structs.
// Derived from https://problemkaputt.de/gbatek.htm#gbakeypadinput
// as well as https://problemkaputt.de/gbatek.htm#dskeypad for the DS-specific buttons.
// Note that the referenced IO registers represent the flags the opposite way
// to this struct, using 0 to mean pressed and 1 to mean released.
struct buttons {
bool a : 1;
bool b : 1;
bool select : 1;
bool start : 1;
bool right : 1;
bool left : 1;
bool up : 1;
bool down : 1;
bool r : 1;
bool l : 1;
bool x : 1;
bool y : 1;
bool unk12 : 1;
bool debug : 1;
bool unk14 : 1;
bool unk15 : 1;
};
ASSERT_SIZE(struct buttons, 2);

#endif
15 changes: 15 additions & 0 deletions headers/types/dungeon_mode/dungeon_mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -2564,6 +2564,21 @@ struct message_log_info {
};
ASSERT_SIZE(struct message_log_info, 12);

// Contains information about the user's current button input in dungeon mode.
struct dungeon_button_input {
struct buttons cur_held_buttons; // 0x0
struct buttons cur_pressed_buttons; // 0x2
struct buttons field_0x4;
// 0x6: This and the next bitfield are duplicates of each other, and store whether
// a certain key has been released this frame after being held for 2-11 frames.
// Only implemented for B and R.
struct buttons cur_released_buttons;
struct buttons cur_released_buttons_2; // 0x8
uint16_t b_frames_counter; // 0x10: How many frames B has been held for (caps at 100)
uint16_t r_frames_counter; // 0x10: How many frames R has been held for (caps at 100)
};
ASSERT_SIZE(struct dungeon_button_input, 14);

// Separate this out into its own file because it's massive
#include "dungeon.h"

Expand Down
4 changes: 2 additions & 2 deletions symbols/arm9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ arm9:
NA: 0x20061EC
JP: 0x20061EC
description: |-
Note: unverified, ported from Irdkwia's notes
Gets the currently held buttons.

r0: controller
r1: btn_ptr
Expand All @@ -919,7 +919,7 @@ arm9:
NA: 0x200625C
JP: 0x200625C
description: |-
Note: unverified, ported from Irdkwia's notes
Gets the currently pressed buttons.

r0: controller
r1: btn_ptr
Expand Down
17 changes: 17 additions & 0 deletions symbols/overlay29.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,13 @@ overlay29:
Returns the successful_exit_tracker field of the dungeon struct.

return: successful_exit_tracker
- name: GetAndStoreButtonInput
address:
EU: 0x22E13A4
description: |-
Gets and stores the button input for the current frame in DUNGEON_BUTTON_INPUT.

No params.
- name: CheckTouchscreenArea
address:
EU: 0x22E15F8
Expand Down Expand Up @@ -7347,6 +7354,16 @@ overlay29:
Note: unverified, ported from Irdkwia's notes

No params.
- name: GetPaletteBaseAddress
address:
EU: 0x23362B0
description: |-
Gets the palette base address for a 3D element loaded from a WTE file.
Takes the same parameters as were used in the specified file's ProcessWte call.

r0: upper part of the palette VRAM
r1: lower part of the palette VRAM
return: palette base address
- name: DisplayNumberTextureUi
address:
EU: 0x23362CC
Expand Down
9 changes: 9 additions & 0 deletions symbols/ram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,15 @@ ram:
Including the allocator metadata, this arena occupies 0x64000 bytes of space.

type: struct mem_arena
- name: DUNGEON_BUTTON_INPUT
address:
EU: 0x237D294
length:
EU: 0xE
description: |-
[Runtime] Stores information about the user's current button input in dungeon mode.

type: struct dungeon_button_input
- name: GROUND_MEMORY_ARENA_1_BLOCKS
address:
NA: 0x2324FDC
Expand Down
Loading