Prev: D469 Up: Map Next: D4F1
D4D6: Game Over
Used by the routine at StartGame.
GameOver D4D6 LD HL,$D839 HL=D839.
D4D9 SET 7,(HL) Set bit 7 of *HL.
D4DB LD B,$4B B=4B.
Halt_Loop D4DD HALT Halt operation (suspend CPU until the next interrupt).
D4DE DJNZ Halt_Loop Decrease counter by one and loop back to Halt_Loop until counter is zero.
D4E0 DI Disable interrupts.
D4E1 CALL Controller_GameOver Call Controller_GameOver.
Long pause...
D4E4 LD BC,$0000 BC=0000.
GameOver_Pause_Loop D4E7 DEC BC Decrease BC by one.
D4E8 LD A,B Jump to GameOver_Pause_Loop until BC is zero.
D4E9 OR C
D4EA JR NZ,GameOver_Pause_Loop
D4EC POP IY Restore IY from the stack.
D4EE JP Game_Loop Jump to Game_Loop.
Prev: D469 Up: Map Next: D4F1