-
Notifications
You must be signed in to change notification settings - Fork 8
/
ram.asm
395 lines (395 loc) · 5.88 KB
/
ram.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
.ORG $7E00BA
free_offset_in_object_pointer_array:
.ORG $7E00BC
max_object_pointer_object:
.ORG $7E00D0
unknown_function_pointer:
.ORG $7E012C
pointer_to_current_music_list:
.ORG $7E013C
number_of_loaded_instruments:
.ORG $7E0300
frame_count:
.ORG $7E0312
screen_flags:
.ORG $7E0314
game_flags:
.ORG $7E045C
object_pointer_array:
.ORG $7E04F4
bg1_tilemap:
.ORG $7E0816
bg3_tilemap:
.ORG $7E0916
collision_map:
.ORG $7E0C3C
current_mode:
.ORG $7E0C91
number_of_visible_bonuses:
.ORG $7E0C97
main_screen_status:
.ORG $7E0C98
subscreen_status:
.ORG $7E0C99
color_addition_settings:
.ORG $7E0C9A
add_substract_select_and_enable:
.ORG $7E0C9D
bg1_h_scroll:
.ORG $7E0C9F
bg1_v_scroll:
.ORG $7E0CA1
bg2_h_scroll:
.ORG $7E0CA3
bg2_v_scroll:
.ORG $7E0CA5
bg3_v_scroll:
.ORG $7E0CA7
bg3_v_scroll_2:
.ORG $7E0CE0
multitap_status:
.ORG $7E0CE6 - USE_MULTI5_BIOS * 5
joypad_1:
.ORG $7E0CE8 - USE_MULTI5_BIOS * 5
joypad_2:
.ORG $7E0CEA - USE_MULTI5_BIOS * 5
joypad_3:
.ORG $7E0CEC - USE_MULTI5_BIOS * 5
joypad_4:
.ORG $7E0CEE - USE_MULTI5_BIOS * 5
joypad_5:
.ORG $7E0CE1 + USE_MULTI5_BIOS * $A
joypad_1_connected:
.ORG $7E0CE2 + USE_MULTI5_BIOS * $A
joypad_2_connected:
.ORG $7E0CE3 + USE_MULTI5_BIOS * $A
joypad_3_connected:
.ORG $7E0CE4 + USE_MULTI5_BIOS * $A
joypad_4_connected:
.ORG $7E0CE5 + USE_MULTI5_BIOS * $A
joypad_5_connected:
.ORG $7E0CF0
joypad_1_previous:
.ORG $7E0CF8
joypad_1_pressed:
.ORG $7E0D40
player1_object:
.ORG $7E0D80
player2_object:
.ORG $7E0DC0
player3_object:
.ORG $7E0E00
player4_object:
.ORG $7E0E7B
poison_related_0:
.ORG $7E0FC0
unknown_object:
.ORG $7E2180
bg3_ram_map:
.ORG $7E2800
temp_uncompressed_graphics:
.ORG $7E6800
empty_tilemap:
.ORG $7F0660
palette_allocation_related_array:
.ORG $7E0D00
level_manager_object:
.ORG $7E0052
byte_7E0052:
.ORG $7E0C3E
byte_7E0C3E:
.ORG $7E0CA9
byte_7E0CA9:
.ORG $7E3400
byte_7E3400:
.ORG $7E0000
unk_7E0000:
.ORG $7E0055
unk_7E0055:
.ORG $7E013A
unk_7E013A:
.ORG $7E04C4
unk_7E04C4:
.ORG $7E0E40
unk_7E0E40:
.ORG $7E0E5A
unk_7E0E5A:
.ORG $7E0E5C
unk_7E0E5C:
.ORG $7E0E9A
unk_7E0E9A:
.ORG $7E0E9C
unk_7E0E9C:
.ORG $7E0F44
unk_7E0F44:
.ORG $7E0F80
unk_7E0F80:
.ORG $7E1C40
unk_7E1C40:
.ORG $7E1C80
unk_7E1C80:
.ORG $7E1F80
unk_7E1F80:
.ORG $7E2802
unk_7E2802:
.ORG $7E2804
unk_7E2804:
.ORG $7E2806
unk_7E2806:
.ORG $7E2808
unk_7E2808:
.ORG $7E280A
unk_7E280A:
.ORG $7E280C
unk_7E280C:
.ORG $7E280E
unk_7E280E:
.ORG $7E4800
unexpanded_collision_map:
.ORG $7E4802
unk_7E4802:
.ORG $7E4A00
unk_7E4A00:
.ORG $7F0000
unk_7F0000:
.ORG $7E0040
word_7E0040:
.ORG $7E0042
word_7E0042:
.ORG $7E0048
word_7E0048:
.ORG $7E0050
word_7E0050:
.ORG $7E0053
word_7E0053:
.ORG $7E0056
word_7E0056:
.ORG $7E0058
word_7E0058:
.ORG $7E0078
word_7E0078:
.ORG $7E007A
word_7E007A:
.ORG $7E00A4
current_screen: DATA 1
debug_no_death: DATA 1
debug_game_speed: DATA 1
debug_bomb_up: DATA 1
debug_fire_up: DATA 1
debug_speed_up: DATA 1
debug_remocon: DATA 1
debug_wall_pass: DATA 1
debug_bomb_pass: DATA 1
debug_fire_pass: DATA 1
debug_full_fire: DATA 1
debug_break_thr: DATA 1
debug_power: DATA 1
debug_kick: DATA 1
debug_skull: DATA 1
debug_time_check: DATA 1
debug_vs_check: DATA 1
debug_bgm: DATA 1
debug_se: DATA 1
.ORG $7E00B5
word_7E00B5:
.ORG $7E00BE
word_7E00BE:
.ORG $7E00D2
word_7E00D2:
.ORG $7E0306
word_7E0306:
.ORG $7E0308
word_7E0308:
.ORG $7E0310
word_7E0310:
.ORG $7E031A
word_7E031A:
.ORG $7E0C5F
word_7E0C5F:
.ORG $7E0C63
word_7E0C63:
.ORG $7E0C7F
word_7E0C7F:
.ORG $7E0C81
word_7E0C81:
.ORG $7E0C83
word_7E0C83:
.ORG $7E0C85
word_7E0C85:
.ORG $7E0C87
word_7E0C87:
.ORG $7E0C89
word_7E0C89:
.ORG $7E0C8B
word_7E0C8B:
.ORG $7E0C8D
word_7E0C8D:
.ORG $7E0C8F
word_7E0C8F:
.ORG $7E0CAA
word_7E0CAA:
.ORG $7E0CAC
word_7E0CAC:
.ORG $7E0CAE
word_7E0CAE:
.ORG $7E0E48
word_7E0E48:
.ORG $7E0E88
word_7E0E88:
.ORG $7E0EC8
word_7E0EC8:
.ORG $7E0F08
word_7E0F08:
.ORG $7E0F40
word_7E0F40:
.ORG $7E0F42
word_7E0F42:
.ORG $7E0F46
word_7E0F46:
.ORG $7E0100
dboot_ram_start:
number_of_music_banks:
.ORG $7E0102
array_of_music_related_pointers:
.ORG $7E011A
current_music_bank:
.ORG $7E011E
number_of_instruments:
.ORG $7E0120
number_of_sounds:
.ORG $7E0122
number_of_musics_in_bank:
.ORG $7E0124
pointer_to_instrument_list:
.ORG $7E0128
pointer_to_sounds_list:
.ORG $7E0130
dboot_internal_parameter:
.ORG $7E0148
dboot_temp:
.ORG $7E014C
instrument_loop_counter:
.ORG $7E0150
dboot_temp_pointer:
.ORG $7E0154
current_pointer_to_instrument_related_data:
.ORG $7E0176
last_write_to_apu_io_0:
.ORG $7FFC00
sound_related_buffer:
.ORG $7FFD00
loaded_instruments:
.ORG $7E011C
unk_7E011C:
.ORG $7E0134
unk_7E0134:
.ORG $7E0138
unk_7E0138:
.ORG $7E0164
unk_7E0164:
.ORG $7E0166
unk_7E0166:
.ORG $7E0168
unk_7E0168:
.ORG $7FFC80
unk_7FFC80:
.ORG $7FFD80
unk_7FFD80:
.ORG $7FFE00
unk_7FFE00:
.ORG $7E0050
byte_7E0050:
.ORG $7E0051
byte_7E0051:
.ORG $7F0600
graphics_table:
.ORG $7E0057
unk_7E0057:
.ORG $7E2810
unk_7E2810:
.ORG $7E4000
unk_7E4000:
.ORG $7E4A02
unk_7E4A02:
.ORG $7F0670
unk_7F0670:
.ORG $7F06AE
unk_7F06AE:
.ORG $7E0055
word_7E0055:
.ORG $7E2804
byte3_7E2804:
.ORG $7E2808
byte3_7E2808:
.ORG $7E280C
byte3_7E280C:
.ORG $7E0CFA
joypad_2_pressed:
.ORG $7E0C61
word_7E0C61:
.ORG $7E0C65
word_7E0C65:
.ORG $7E0C93
word_7E0C93:
.ORG $7E0C95
word_7E0C95:
.ORG $7E00DB
unk_7E00DB:
.ORG $7E00DC
unk_7E00DC:
.ORG $7E1FC0
unk_7E1FC0:
.ORG $7E2000
unk_7E2000:
.ORG $7E2020
unk_7E2020:
.ORG $7E2038
unk_7E2038:
.ORG $7E203A
unk_7E203A:
.ORG $7E21E6
unk_7E21E6:
.ORG $7F0400
unk_7F0400:
.ORG $7F06B0
unk_7F06B0:
.ORG $7E00A0
word_7E00A0:
.ORG $7E00A2
word_7E00A2:
.ORG $7E00A7
word_7E00A7:
.ORG $7E00A9
word_7E00A9:
.ORG $7E00AB
word_7E00AB:
.ORG $7E00AD
word_7E00AD:
.ORG $7E00AF
word_7E00AF:
.ORG $7E00B1
word_7E00B1:
.ORG $7E00B6
word_7E00B6:
.ORG $7E0304
word_7E0304:
.ORG $7E030A
word_7E030A:
.ORG $7E030C
word_7E030C:
.ORG $7E030E
word_7E030E:
.ORG $7E0316
word_7E0316:
.ORG $7E0318
word_7E0318:
.ORG $7E0C3F
combo_counter:
.ORG $7E0CE0
word_7E0CE0:
.ORG $7E00A0
byte_7E00A0:
.ORG $7E00A2
byte_7E00A2:
.ORG $7E0F40
enemy_objects: