Prev: 63420 Up: Map Next: 63460
63428: Action: Quit
Carry out the "Quit" command.
Action_Quit 63428 CALL ParserValidateNoDirectObject Call ParserValidateNoDirectObject.
The "QUIT" command can only be called on its own.
63431 RET C Return if the direct object is malformed.
63432 CALL Messaging_YouHaveScored_Print Call Messaging_YouHaveScored_Print.
Print "Want to save the game? Y/N.".
63435 LD HL,45207 HL=Messaging_WantToSaveTheGameYN.
63438 CALL PrintStringAndNewline Call PrintStringAndNewline.
WantToSave_Loop 63441 CALL GetUserInput Call GetUserInput.
63444 CP 78 Jump to QuitGame if the player pressed "N".
63446 JR Z,QuitGame
63448 CP 89 Jump to WantToSave_Loop unless the player pressed "Y".
63450 JR NZ,WantToSave_Loop
63452 CALL SaveGame Call SaveGame.
QuitGame 63455 LD HL,59838 Return to the play-again question.
63458 EX (SP),HL
63459 RET Return.
Prev: 63420 Up: Map Next: 63460