Prev: 8FA9 Up: Map Next: 8FCD
8FB1: Action: Quit
Ask whether to save, then offer another game.
ActionQuit 8FB1 CALL Parser_ValidateNoDirectObject Return if the command names an object: the player is told to rephrase it.
8FB4 RET C
8FB5 LD HL,$6410 Print Want to save the game? Y/N..
8FB8 CALL PrintStringAndANewline
ActionQuit_Loop1 8FBB CALL GetUserInput Call GetUserInput to wait for a keypress.
8FBE CP $4E Jump to ActionQuit_Step1 when N (4E) was pressed.
8FC0 JR Z,ActionQuit_Step1
8FC2 CP $59 Jump back to ActionQuit_Loop1 when Y (59) was not pressed.
8FC4 JR NZ,ActionQuit_Loop1
8FC6 CALL Action_Save Call Action_Save to save.
ActionQuit_Step1 8FC9 POP HL The player is leaving this game.
8FCA JP HandlerAskToPlayAgain Jump to HandlerAskToPlayAgain to ask to play again.
Prev: 8FA9 Up: Map Next: 8FCD