![]() |
Routines |
| Prev: 36777 | Up: Map | Next: 36813 |
|
Ask whether to save, then offer another game.
|
||||
| ActionQuit | 36785 | CALL Parser_ValidateNoDirectObject | Return if the command names an object: the player is told to rephrase it. | |
| 36788 | RET C | |||
| 36789 | LD HL,25616 | Print Want to save the game? Y/N.. | ||
| 36792 | CALL PrintStringAndANewline | |||
| ActionQuit_Loop1 | 36795 | CALL GetUserInput | Call GetUserInput to wait for a keypress. | |
| 36798 | CP 78 | Jump to ActionQuit_Step1 when N (78) was pressed. | ||
| 36800 | JR Z,ActionQuit_Step1 | |||
| 36802 | CP 89 | Jump back to ActionQuit_Loop1 when Y (89) was not pressed. | ||
| 36804 | JR NZ,ActionQuit_Loop1 | |||
| 36806 | CALL Action_Save | Call Action_Save to save. | ||
| ActionQuit_Step1 | 36809 | POP HL | The player is leaving this game. | |
| 36810 | JP HandlerAskToPlayAgain | Jump to HandlerAskToPlayAgain to ask to play again. | ||
| Prev: 36777 | Up: Map | Next: 36813 |