Prev: 61065 Up: Map Next: 61102
61073: Action: Quit
Ask whether to abandon the game and, if so, offer to save it.
Action_Quit 61073 CALL Parser_ValidateNoDirectObject Return if the words after the verb are not valid for this command.
61076 RET C
61077 LD HL,48261 Print "Want to save the game? Y/N.".
61080 CALL PrintStringAndANewline
Action_Quit_Loop 61083 CALL GetUserInput Call GetUserInput to wait for a keypress.
61086 CP 78 Jump to Action_Quit_Next if "N" was pressed.
61088 JR Z,Action_Quit_Next
61090 CP 89 Jump back to Action_Quit_Loop if "Y" was not pressed.
61092 JR NZ,Action_Quit_Loop
61094 CALL SaveGame Call SaveGame to save the game to tape.
Action_Quit_Next 61097 LD HL,60201 Switch GameOver_WantAnother onto the stack.
61100 EX (SP),HL
61101 RET Return.
Prev: 61065 Up: Map Next: 61102