Prev: 62366 Up: Map Next: 62526
62380: Handler: Bombs
Used by the routine at Handler_CheckTime.
Handler_Bombs 62380 LD A,(55352) Jump to Handler_Bombs_4 if *Bomb is equal to 0.
62383 CP 0
62385 JR Z,Handler_Bombs_4
62387 BIT 1,A Jump to Handler_Bombs_0 if bit 1 of A is not set.
62389 JR Z,Handler_Bombs_0
62391 RES 1,A Reset bit 1 of A.
62393 LD (55352),A Write A to *Bomb.
62396 LD A,21 A=21.
62398 CALL 62351 Call 62351.
62401 LD BC,(55829) Write *55829 to *Tile_Horizontal_Position.
62405 LD (59229),BC
62409 JR Handler_Bombs_3 Jump to Handler_Bombs_3.
Handler_Bombs_0 62411 BIT 2,A Jump to Handler_Bombs_1 if bit 2 of A is not set.
62413 JR Z,Handler_Bombs_1
62415 RES 2,A Reset bit 2 of A.
62417 LD (55352),A Write A to *Bomb.
62420 LD A,61 A=61.
62422 CALL 62351 Call 62351.
62425 LD BC,(55831) BC=*55831.
62429 LD (59229),BC Write BC to *Tile_Horizontal_Position.
62433 JR Handler_Bombs_3 Jump to Handler_Bombs_3.
Handler_Bombs_1 62435 BIT 3,A Jump to Handler_Bombs_2 if bit 3 of A is not set.
62437 JR Z,Handler_Bombs_2
62439 RES 3,A Reset bit 3 of A.
62441 LD (55352),A Write A to *Bomb.
62444 LD A,62 A=62.
62446 CALL 62351 Call 62351.
62449 LD BC,(55833) Write *55833 to *Tile_Horizontal_Position.
62453 LD (59229),BC
62457 JR Handler_Bombs_3 Jump to Handler_Bombs_3.
Handler_Bombs_2 62459 BIT 4,A Jump to Handler_Bombs_4 if bit 4 of A is not set.
62461 JR Z,Handler_Bombs_4
62463 RES 4,A Reset bit 4 of A.
62465 LD (55352),A Write A to *Bomb.
62468 LD A,63 A=63.
62470 CALL 62351 Call 62351.
62473 LD BC,(55835) Write *55835 to *Tile_Horizontal_Position.
62477 LD (59229),BC
Handler_Bombs_3 62481 XOR A Write 0 to *55347.
62482 LD (55347),A
62485 CALL 55999 Call 55999.
62488 LD A,1 Write 1 to *55347.
62490 LD (55347),A
62493 CALL 59866 Call 59866.
62496 CALL 59253 Call 59253.
62499 POP IY Restore IY from the stack.
62501 JP 54302 Jump to 54302.
Handler_Bombs_4 62504 CALL Handler_PlayerInput Call Handler_PlayerInput.
62507 CP 0 Jump to Handler_Controls if A is not equal to 0.
62509 JP NZ,Handler_Controls
This entry point is used by the routine at 62526.
Handler_Bombs_5 62512 LD A,(55349) Jump to Handler_HomeArrow if *PlayerCursor_Flag is equal to 0.
62515 CP 0
62517 JP Z,Handler_HomeArrow
62520 CALL 58194 Call 58194.
62523 JP Handler_CheckTime Jump to Handler_CheckTime.
Prev: 62366 Up: Map Next: 62526