-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.asm
133 lines (94 loc) · 3.95 KB
/
constants.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
.gba
ADDR_BACKGROUNDS equ 0x02000F91
ADDR_KEY equ 0x02000D10
ADDR_RNG equ 0x0202E188
ADDR_GAME_PROGRESS equ 0x0202EBB4
ADDR_HACKER_ELF_EFFECT equ 0x0202EBBB
ADDR_STAGE_INDEX equ 0x0202EC30
ADDR_CHECKPOINT equ 0x0202EC32
ADDR_CUTSCENE_SKIPPABLE equ 0x0202EC38
ADDR_SCRIPT_BASE equ 0x0202EC40
ADDR_STAGE_SCRIPT_ACTIVE equ 0x0202EC42
ADDR_STAGE_SCRIPT_BASE equ 0x0202EC48
ADDR_STAGE_SCRIPT equ 0x0202EC4C
ADDR_BOSS_POINTER equ 0x0202EC60
ADDR_SCRIPT_TIMER equ 0x0202ED14
ADDR_SCRIPTED_ZERO_MOVEMENT equ 0x0202ED88
ADDR_STAGE_STATE equ 0x0202EDAC
ADDR_GAME_STATE equ 0x0202F8E1
ADDR_ENTITY_CYBER_ELF_LIST_HEAD equ 0x0203024C
ADDR_STORED_ZERO_DATA equ 0x02036C04
ADDR_STORED_GAME_PROGRESS equ 0x02036B44
ADDR_ZERO_BASE equ 0x02037CF0
ADDR_ZERO_CURRENT_HEALTH equ 0x02037D94
ADDR_ZERO_RESPAWN_HEALTH equ 0x02037E6E
ADDR_FREE_AREA equ 0x02037FF4 ; Only free if Zero entity max count is set to 1 (see main.asm), 0x304 bytes (actually 0x17E??)
OFFSET_NEW_SAVED_ELVES equ 0x174
OFFSET_NEW_SAVED_HACKER_EFFECT equ 0x177
OFFSET_NEW_INPUT_BUFFER equ 0x17A
OFFSET_NEW_PAUSE_PREVENTION equ 0x17B
OFFSET_NEW_CHARGE_TIMER equ 0x17C
ROMADDR_PLAY_SOUND_EFFECT equ 0x080032EC
ROMADDR_SET_ZERO_ENTITY_MAX_LOCATION equ 0x080E44DA
ROMADDR_INTRO_HOOK equ 0x08015F26
ROMADDR_INTRO_FUNC_END equ 0x0801641C
ROMADDR_PANTER_HOOK equ 0x0801835A
ROMADDR_PANTER_FUNC_END equ 0x08018540
ROMADDR_PHOENIX_HOOK equ 0x08017810
ROMADDR_POLER_HOOK equ 0x08016C52
ROMADDR_POLER_FUNC_END equ 0x08016E6C
ROMADDR_HYLEG_HOOK equ 0x080167FC
ROMADDR_HYLEG_FUNC_END equ 0x080169C8
ROMADDR_NA1_HOOK equ 0x08019942
ROMADDR_NA1_FUNC_END equ 0x08019C4C
ROMADDR_KUWAGUST_HOOK equ 0x08017136
ROMADDR_KUWAGUST_FUNC_END equ 0x08017758
ROMADDR_HARPUIA_HOOK equ 0x08018EE2
ROMADDR_HARPUIA_FUNC_END equ 0x080190D4
ROMADDR_BURBLE_HOOK equ 0x0801867E
ROMADDR_BURBLE_FUNC_END equ 0x08018974
ROMADDR_LEVIATHAN_HOOK equ 0x08018C26
ROMADDR_LEVIATHAN_FUNC_END equ 0x08018D56
ROMADDR_FEFNIR_HOOK equ 0x0801944E
ROMADDR_FEFNIR_FUNC_END equ 0x0801957E
ROMADDR_NA2_HOOK equ 0x080196D6
ROMADDR_NA2_FUNC_END equ 0x080197F8
ROMADDR_FEFNIRAP_HOOK equ 0x08019D9E ; cmp r0, mov r1, ldr 0x0832DA10, pool +14
ROMADDR_FEFNIRAP_FUNC_END equ 0x08019F50
ROMADDR_LEVIATHANAP_HOOK equ 0x0801A0F2 ; cmp r0, mov r1, ldr 0x0832E0BC, pool +14
ROMADDR_LEVIATHANAP_FUNC_END equ 0x0801A298
ROMADDR_HARPUIAAP_HOOK_1 equ 0x0804D9E8
ROMADDR_HARPUIAAP_HOOK_3 equ 0x0801A42E ; cmp r0, mov r1, ldr 0x0832EB5C, pool +14
ROMADDR_HARPUIAAP_FUNC_END equ 0x0801A5AC
ROMADDR_FINAL_HOOK equ 0x0801A7B2 ; cmp r0, mov r2, ldr 0x083309A4, pool +22
ROMADDR_FINAL_FUNC_END equ 0x0801AF1C
ROMADDR_CMDROOM_HOOK equ 0x0801B09A
ROMADDR_CMDROOM_FUNC_END equ 0x0801B114
ROMADDR_CMDROOM_ELPIZO_HOOK equ 0x080C9F3E
ROMADDR_CMDROOM_ELPIZO_HOOK_2 equ 0x080C9EB8
ROMADDR_SET_SCRIPT_ADDRS equ 0x0801B454
ROMADDR_CHARGE_TIMER_HOOK equ 0x0801B5E8
ROMADDR_RESET_CHARGE_TIMER_FUNC equ 0x08022F84
ROMADDR_RESET_CYBER_ELVES equ 0x080232F6
ROMADDR_CHARGE_TIMER_HOOK_2 equ 0x08023356 ; lol
ROMADDR_RESPAWN_HEALTH_HOOK equ 0x08030E9E
ROMADDR_STORE_ZERO_DATA equ 0x08031198
ROMADDR_GET_MAX_HEALTH equ 0x080378F8
ROMADDR_ZERO_REMOVE_CYBERELF_REFS equ 0x080D5900
ROMADDR_CYBERELF_MAYBE_SPAWN equ 0x080D636C
ROMADDR_START_GAME_SOUND_EFFECT equ 0x080E09AE
ROMADDR_SET_HARD_MODE_AVAILABLE_FLAG equ 0x080E422E
ROMADDR_RNG_HOOK equ 0x080E44AE
ROMADDR_RNG_HOOK_RETURN equ 0x080E44B8
ROMADDR_STAGE_SCRIPTS equ 0x08325638
ROMADDR_ENDING_SKIP_POINT equ 0x08330504
VAL_KEY_A equ 0x1
VAL_KEY_B equ 0x2
VAL_KEY_SEL equ 0x4
VAL_KEY_START equ 0x8
VAL_KEY_RIGHT equ 0x10
VAL_KEY_LEFT equ 0x20
VAL_KEY_UP equ 0x40
VAL_KEY_DOWN equ 0x80
VAL_KEY_R equ 0x100
VAL_KEY_L equ 0x200