-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathknight.noi
480 lines (480 loc) · 9.73 KB
/
knight.noi
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
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
DEF .__.ABS. 0x0
DEF l__CABS 0x0
DEF l__CODE_0 0x0
DEF l__DABS 0x0
DEF l__FONT_HEADER 0x0
DEF l__HEADER 0x0
DEF l__HEADER_LCD 0x0
DEF l__HEAP 0x0
DEF l__HRAM 0x0
DEF l__LIT 0x0
DEF l__SFR 0x0
DEF s__CABS 0x0
DEF s__DABS 0x0
DEF s__FONT_HEADER 0x0
DEF s__FONT_HEADER0 0x0
DEF s__HEADER 0x0
DEF s__HEADER0 0x0
DEF s__HEADER1 0x0
DEF s__HEADER10 0x0
DEF s__HEADER11 0x0
DEF s__HEADER2 0x0
DEF s__HEADER3 0x0
DEF s__HEADER4 0x0
DEF s__HEADER5 0x0
DEF s__HEADER6 0x0
DEF s__HEADER7 0x0
DEF s__HEADER8 0x0
DEF s__HEADER9 0x0
DEF s__HEADER_LCD 0x0
DEF s__HEADER_LCD0 0x0
DEF s__HEADERa 0x0
DEF s__HEADERb 0x0
DEF s__HEADERc 0x0
DEF s__HEADERd 0x0
DEF s__HEADERe 0x0
DEF s__HEADERf 0x0
DEF s__HRAM 0x0
DEF s__HRAM12 0x0
DEF s__SFR 0x0
DEF s__SFR0 0x0
DEF s__SFR1 0x0
DEF s__SFR10 0x0
DEF s__SFR11 0x0
DEF s__SFR12 0x0
DEF s__SFR13 0x0
DEF s__SFR14 0x0
DEF s__SFR15 0x0
DEF s__SFR16 0x0
DEF s__SFR17 0x0
DEF s__SFR18 0x0
DEF s__SFR19 0x0
DEF s__SFR1a 0x0
DEF s__SFR1b 0x0
DEF s__SFR1c 0x0
DEF s__SFR1d 0x0
DEF s__SFR1e 0x0
DEF s__SFR1f 0x0
DEF s__SFR2 0x0
DEF s__SFR20 0x0
DEF s__SFR21 0x0
DEF s__SFR22 0x0
DEF s__SFR23 0x0
DEF s__SFR24 0x0
DEF s__SFR25 0x0
DEF s__SFR26 0x0
DEF s__SFR27 0x0
DEF s__SFR28 0x0
DEF s__SFR29 0x0
DEF s__SFR2a 0x0
DEF s__SFR2b 0x0
DEF s__SFR2c 0x0
DEF s__SFR2d 0x0
DEF s__SFR2e 0x0
DEF s__SFR2f 0x0
DEF s__SFR3 0x0
DEF s__SFR30 0x0
DEF s__SFR31 0x0
DEF s__SFR32 0x0
DEF s__SFR33 0x0
DEF s__SFR34 0x0
DEF s__SFR35 0x0
DEF s__SFR36 0x0
DEF s__SFR4 0x0
DEF s__SFR5 0x0
DEF s__SFR6 0x0
DEF s__SFR7 0x0
DEF s__SFR8 0x0
DEF s__SFR9 0x0
DEF s__SFRa 0x0
DEF s__SFRb 0x0
DEF s__SFRc 0x0
DEF s__SFRd 0x0
DEF s__SFRe 0x0
DEF s__SFRf 0x0
DEF l__GSFINAL 0x1
DEF l__HEADER0 0x1
DEF l__HEADER11 0x1
DEF l__HEADER9 0x1
DEF l__HEADERa 0x1
DEF l__HEADERb 0x1
DEF l__HEADERd 0x1
DEF l__HEADERe 0x1
DEF l__SFR0 0x1
DEF l__SFR1 0x1
DEF l__SFR10 0x1
DEF l__SFR11 0x1
DEF l__SFR12 0x1
DEF l__SFR13 0x1
DEF l__SFR14 0x1
DEF l__SFR15 0x1
DEF l__SFR16 0x1
DEF l__SFR17 0x1
DEF l__SFR18 0x1
DEF l__SFR19 0x1
DEF l__SFR1a 0x1
DEF l__SFR1b 0x1
DEF l__SFR1c 0x1
DEF l__SFR1d 0x1
DEF l__SFR1e 0x1
DEF l__SFR1f 0x1
DEF l__SFR2 0x1
DEF l__SFR20 0x1
DEF l__SFR21 0x1
DEF l__SFR22 0x1
DEF l__SFR23 0x1
DEF l__SFR24 0x1
DEF l__SFR25 0x1
DEF l__SFR26 0x1
DEF l__SFR27 0x1
DEF l__SFR28 0x1
DEF l__SFR29 0x1
DEF l__SFR2a 0x1
DEF l__SFR2b 0x1
DEF l__SFR2c 0x1
DEF l__SFR2d 0x1
DEF l__SFR2e 0x1
DEF l__SFR2f 0x1
DEF l__SFR3 0x1
DEF l__SFR30 0x1
DEF l__SFR31 0x1
DEF l__SFR32 0x1
DEF l__SFR33 0x1
DEF l__SFR34 0x1
DEF l__SFR35 0x1
DEF l__SFR36 0x1
DEF l__SFR4 0x1
DEF l__SFR5 0x1
DEF l__SFR6 0x1
DEF l__SFR7 0x1
DEF l__SFR8 0x1
DEF l__SFR9 0x1
DEF l__SFRa 0x1
DEF l__SFRb 0x1
DEF l__SFRc 0x1
DEF l__SFRd 0x1
DEF l__SFRe 0x1
DEF l__SFRf 0x1
DEF l__HEADER5 0x2
DEF l__HEADERc 0x2
DEF l__HEADERf 0x2
DEF l__FONT_HEADER0 0x3
DEF l__HEADER8 0x3
DEF l__HEADER_LCD0 0x3
DEF l__HRAM12 0x3
DEF l__HEADER1 0x5
DEF l__HEADER7 0x6
DEF l__HEADER2 0x7
DEF l__HEADER3 0x8
DEF l__HEADER4 0x2C
DEF l__HEADER6 0x30
DEF l__GSINIT 0x3A
DEF l__BSS 0x45
DEF l__HOME 0x6A
DEF l__HEADER10 0x83
DEF l__DATA 0x96
DEF s__CODE 0x200
DEF l__INITIALIZED 0x20F
DEF l__INITIALIZER 0x20F
DEF l__BASE 0x9B9
DEF l__CODE 0x3C69
DEF s__HOME 0x3E69
DEF s__BASE 0x3ED3
DEF s__CODE_0 0x488C
DEF s__INITIALIZER 0x488C
DEF s__LIT 0x488C
DEF s__GSINIT 0x4A9B
DEF s__GSFINAL 0x4AD5
DEF _shadow_OAM 0xC000
DEF s__DATA 0xC0A0
DEF s__BSS 0xC136
DEF s__INITIALIZED 0xC17B
DEF s__HEAP 0xC38A
DEF .STACK 0xE000
DEF .refresh_OAM 0xFF80
DEF _knight_spritesCGB 0x200
DEF _knight_sprites 0x241
DEF _main 0x651
DEF _titlescreen_data 0x813
DEF _titlescreen_map 0x1103
DEF _interruptLCD 0x126B
DEF _turnOnSound 0x1272
DEF _turnOffSound 0x127F
DEF _init 0x1283
DEF _performDelay 0x12B2
DEF _joyHandler 0x12C7
DEF _fadeOut 0x131B
DEF _resetBackground 0x1364
DEF _hitSound 0x1377
DEF _coinSound 0x138B
DEF _randomize 0x13A0
DEF _gameOverScreen 0x13C0
DEF _checkCollision 0x1440
DEF _spritePalette 0x15D8
DEF _backgroundPalette 0x1608
DEF _spritesize 0x1628
DEF _checkPlayerCollision 0x1629
DEF _checkObstacles 0x17FB
DEF _moveCharacter 0x1882
DEF _setupPlayer 0x1905
DEF _animations 0x1958
DEF _setupCoins 0x1C55
DEF _positionCoins 0x1D13
DEF _setupArrow 0x1DF2
DEF _positionArrow 0x1E5C
DEF _setupObstacles 0x1EE7
DEF _positionObstacles 0x2081
DEF _setupBombs 0x216B
DEF _positionBombs 0x21F3
DEF _setupBackground 0x2285
DEF _setupCharacters 0x22C1
DEF _updateCoinsCounter 0x22D0
DEF _updateHealth 0x2320
DEF _updateScore 0x2366
DEF _Knight_tilesCGB 0x2396
DEF _Knight_tiles 0x23A3
DEF _ForestBGPLN0 0x2473
DEF _ForestBGPLN1 0x26F3
DEF _song0 0x2973
DEF _song1 0x2AA6
DEF _song2 0x2BD0
DEF _song3 0x2CFE
DEF _song4 0x2E28
DEF _song5 0x2F54
DEF _song6 0x3068
DEF _song7 0x318F
DEF _song8 0x32B3
DEF _song_Data 0x33DC
DEF gbt_get_pattern_ptr 0x33F4
DEF _gbt_play 0x3411
DEF _gbt_pause 0x34CC
DEF _gbt_loop 0x34DD
DEF _gbt_stop 0x34E4
DEF _gbt_enable_channels 0x34EF
DEF _gbt_update 0x34F6
DEF gbt_channel_1_handle 0x3727
DEF gbt_channel_2_handle 0x387D
DEF gbt_channel_3_handle 0x39CF
DEF gbt_channel_4_handle 0x3B40
DEF gbt_update_bank1 0x3C40
DEF gbt_update_effects_bank1 0x3C5C
DEF _putchar 0x3C79
DEF _setchar 0x3C82
DEF _gotoxy 0x3C8B
DEF _posx 0x3C96
DEF _posy 0x3CA7
DEF _rand 0x3CB8
DEF _randw 0x3CB8
DEF __divsuchar 0x3CE3
DEF __modsuchar 0x3CF0
DEF __divuschar 0x3CFA
DEF __moduschar 0x3D0C
DEF __divschar 0x3D1C
DEF __modschar 0x3D28
DEF __divsint 0x3D32
DEF __modsint 0x3D43
DEF __divuchar 0x3D52
DEF __moduchar 0x3D5E
DEF __divuint 0x3D68
DEF __moduint 0x3D79
DEF .div8 0x3D88
DEF .mod8 0x3D88
DEF .div16 0x3D90
DEF .mod16 0x3D90
DEF .divu8 0x3DC6
DEF .modu8 0x3DC6
DEF .divu16 0x3DC9
DEF .modu16 0x3DC9
DEF _set_sprite_palette_entry 0x3E0A
DEF _set_bkg_palette_entry 0x3E0F
DEF .set_palette_entry 0x3E12
DEF _cpu_slow 0x3E2E
DEF _cpu_fast 0x3E49
DEF _cgb_compatibility 0x3E50
DEF .call_hl 0x20
DEF .MemsetSmall 0x28
DEF .MemcpySmall 0x30
DEF .int 0x80
DEF _wait_int_handler 0x8F
DEF __standard_VBL_handler 0x9C
DEF .reset 0x150
DEF _reset 0x150
DEF .code_start 0x153
DEF _exit 0x1B4
DEF _enable_interrupts 0x1B8
DEF _disable_interrupts 0x1BA
DEF _set_interrupts 0x1BC
DEF .remove_VBL 0x3E69
DEF .remove_int 0x3E6C
DEF .add_VBL 0x3E89
DEF .add_int 0x3E8C
DEF .wait_vbl_done 0x3E97
DEF _wait_vbl_done 0x3E97
DEF .display_off 0x3EA6
DEF _display_off 0x3EA6
DEF _remove_VBL 0x3EBD
DEF _add_VBL 0x3EC8
DEF _font_load_ibm 0x3ED3
DEF font_copy_uncompressed 0x3EDA
DEF font_copy_compressed 0x3F10
DEF font_load 0x3F5F
DEF font_copy_current 0x3FA7
DEF font_set 0x3FEF
DEF .put_char 0x3FFC
DEF .out_char 0x4014
DEF .del_char 0x401A
DEF _font_load 0x4070
DEF _font_set 0x407E
DEF _font_init 0x408D
DEF .cls 0x40AD
DEF _cls 0x40AD
DEF .cr_curs 0x40DF
DEF .adv_curs 0x40F4
DEF .tmode 0x4150
DEF .tmode_out 0x4179
DEF _initrand 0x4189
DEF .initrand 0x418B
DEF .padup 0x4194
DEF _waitpadup 0x4194
DEF .jpad 0x41A4
DEF _joypad 0x41A4
DEF _waitpad 0x41CC
DEF .wait_pad 0x41CF
DEF _set_sprite_palette 0x41D6
DEF _set_bkg_palette 0x41DB
DEF .set_palette 0x41DE
DEF _set_win_tiles 0x41FD
DEF _set_tile_data 0x4211
DEF _set_bkg_data 0x4216
DEF _set_win_data 0x4216
DEF _set_sprite_data 0x421E
DEF _color 0x424E
DEF .drawing_vbl 0x425D
DEF .drawing_lcd 0x4268
DEF _add_LCD 0x42A4
DEF .add_LCD 0x42AF
DEF _remove_LCD 0x42B5
DEF .remove_LCD 0x42C0
DEF _font_ibm 0x42C6
DEF _font_min 0x4678
DEF _set_bkg_tiles 0x4822
DEF .set_xy_wtt 0x4836
DEF .set_xy_btt 0x483F
DEF .set_xy_tt 0x484E
DEF gsinit 0x4A9B
DEF _seed 0xC0A0
DEF _i 0xC0A2
DEF _frame 0xC0A3
DEF _spriteID 0xC0A4
DEF _player 0xC0A5
DEF _coins 0xC0AE
DEF _arrow 0xC0D2
DEF _obstacles 0xC0DB
DEF _bombs 0xC0ED
DEF gbt_playing 0xC0F6
DEF gbt_song 0xC0F7
DEF gbt_bank 0xC0F9
DEF gbt_speed 0xC0FA
DEF gbt_temp_play_data 0xC0FB
DEF gbt_loop_enabled 0xC107
DEF gbt_ticks_elapsed 0xC108
DEF gbt_current_step 0xC109
DEF gbt_current_pattern 0xC10A
DEF gbt_current_step_data_ptr 0xC10B
DEF gbt_channels_enabled 0xC10D
DEF gbt_pan 0xC10E
DEF gbt_vol 0xC112
DEF gbt_instr 0xC116
DEF gbt_freq 0xC11A
DEF gbt_channel3_loaded_instrument 0xC120
DEF gbt_arpeggio_freq_index 0xC121
DEF gbt_arpeggio_enabled 0xC12A
DEF gbt_arpeggio_tick 0xC12D
DEF gbt_cut_note_tick 0xC130
DEF gbt_have_to_stop_next_step 0xC134
DEF gbt_update_pattern_pointers 0xC135
DEF __cpu 0xC136
DEF .mode 0xC137
DEF .sys_time 0xC138
DEF _sys_time 0xC138
DEF .int_0x40 0xC13A
DEF font_current 0xC14E
DEF font_first_free_tile 0xC151
DEF font_table 0xC152
DEF .curx 0xC164
DEF .cury 0xC165
DEF .randhi 0xC166
DEF .randlo 0xC167
DEF .fg_colour 0xC168
DEF .bg_colour 0xC169
DEF .draw_mode 0xC16A
DEF .int_0x48 0xC16B
DEF _game_on 0xC17B
DEF _paused 0xC17C
DEF _timer 0xC17D
DEF _shield 0xC17E
DEF _hit 0xC17F
DEF _explosion 0xC180
DEF _swap 0xC181
DEF _windowmap 0xC182
DEF _windowpalette 0xC196
DEF _gameOverMap 0xC1AA
DEF _gameOverPalette 0xC29A
DEF __current_bank 0xFF90
DEF __shadow_OAM_base 0xFF92
DEF _P1_REG 0xFF00
DEF _SB_REG 0xFF01
DEF _SC_REG 0xFF02
DEF _DIV_REG 0xFF04
DEF _TIMA_REG 0xFF05
DEF _TMA_REG 0xFF06
DEF _TAC_REG 0xFF07
DEF _IF_REG 0xFF0F
DEF _NR10_REG 0xFF10
DEF _NR11_REG 0xFF11
DEF _NR12_REG 0xFF12
DEF _NR13_REG 0xFF13
DEF _NR14_REG 0xFF14
DEF _NR21_REG 0xFF16
DEF _NR22_REG 0xFF17
DEF _NR23_REG 0xFF18
DEF _NR24_REG 0xFF19
DEF _NR30_REG 0xFF1A
DEF _NR31_REG 0xFF1B
DEF _NR32_REG 0xFF1C
DEF _NR33_REG 0xFF1D
DEF _NR34_REG 0xFF1E
DEF _NR41_REG 0xFF20
DEF _NR42_REG 0xFF21
DEF _NR43_REG 0xFF22
DEF _NR44_REG 0xFF23
DEF _NR50_REG 0xFF24
DEF _NR51_REG 0xFF25
DEF _NR52_REG 0xFF26
DEF _LCDC_REG 0xFF40
DEF _STAT_REG 0xFF41
DEF _SCY_REG 0xFF42
DEF _SCX_REG 0xFF43
DEF _LY_REG 0xFF44
DEF _LYC_REG 0xFF45
DEF _DMA_REG 0xFF46
DEF _BGP_REG 0xFF47
DEF _OBP0_REG 0xFF48
DEF _OBP1_REG 0xFF49
DEF _WY_REG 0xFF4A
DEF _WX_REG 0xFF4B
DEF _KEY1_REG 0xFF4D
DEF _VBK_REG 0xFF4F
DEF _HDMA1_REG 0xFF51
DEF _HDMA2_REG 0xFF52
DEF _HDMA3_REG 0xFF53
DEF _HDMA4_REG 0xFF54
DEF _HDMA5_REG 0xFF55
DEF _RP_REG 0xFF56
DEF _BCPS_REG 0xFF68
DEF _BCPD_REG 0xFF69
DEF _OCPS_REG 0xFF6A
DEF _OCPD_REG 0xFF6B
DEF _SVBK_REG 0xFF70
DEF _IE_REG 0xFFFF
LOAD knight.ihx