Prev: 30077 Up: Map Next: 30122
30078: Game Over
Used by the routine at InitialiseNewGame.
GameOver 30078 CALL 29728 Call 29728.
30081 LD HL,(30792) HL=*30792.
30084 LD DE,(30790) DE=*30790.
30088 AND A Set flags.
30089 SBC HL,DE HL-=DE (with carry).
30091 JR NC,Print_GameOver Jump to Print_GameOver if {} is higher.
30093 EX DE,HL Exchange the DE and HL registers.
30094 LD (30792),HL Write HL to *30792.
30097 EXX Switch to the shadow registers.
30098 LD DE,20955 DE'=20955 (screen buffer location).
30101 EXX Switch back to the normal registers.
30102 CALL 29748 Call 29748.
Print the "GAME OVER-PRESS KEY TO TRY AGAIN" messaging in the footer.
game-over
Print_GameOver 30105 LD A,132 A=132 (INK: GREEN, PAPER: BLACK FLASH: ON).
30107 LD HL,47686 HL=Messaging_GameOver.
30110 CALL PrintFooterColourString Call PrintFooterColourString.
GameOver_Input 30113 CALL KeyboardInput Call KeyboardInput.
30116 AND A Jump to GameOver_Input until any key is pressed.
30117 JR Z,GameOver_Input
30119 JP StartScreen Jump to StartScreen.
Prev: 30077 Up: Map Next: 30122