![]() |
Routines |
| Prev: 8DB3 | Up: Map | Next: 8DCE |
|
Used by the routines at GameComplete and ActionQuit.
Ask whether to play again; reset the machine or start another game.
|
||||
|
Print "Want another game? Y/N.".
|
||||
| WantAnotherGameInput | 8DB9 | LD HL,$639A | HL=Messaging_WantAnotherGameYN. | |
| 8DBC | CALL PrintStringAndANewline | Call PrintStringAndANewline. | ||
| WantAnotherGameInput_Loop | 8DBF | CALL GetUserInput | Call GetUserInput. | |
|
The player is done with the game, so reset back to BASIC.
|
||||
| 8DC2 | CP $4E | Jump to START if the player pressed "N". | ||
| 8DC4 | JP Z,$0000 | |||
|
The player wants another go...
|
||||
| 8DC7 | CP $59 | Jump back to GameEntryPoint if the player pressed "Y". | ||
| 8DC9 | JP Z,GameEntryPoint | |||
|
Just loop round for any other input.
|
||||
| 8DCC | JR WantAnotherGameInput_Loop | Jump to WantAnotherGameInput_Loop. | ||
|
View the equivalent code in;
|
||||
| Prev: 8DB3 | Up: Map | Next: 8DCE |