![]() |
Routines |
| Prev: F7BC | Up: Map | Next: F7E4 |
|
Carry out the "Quit" command.
|
||||
| Action_Quit | F7C4 | CALL ParserValidateNoDirectObject | Call ParserValidateNoDirectObject. | |
|
The "QUIT" command can only be called on its own.
|
||||
| F7C7 | RET C | Return if the direct object is malformed. | ||
| F7C8 | CALL Messaging_YouHaveScored_Print | Call Messaging_YouHaveScored_Print. | ||
|
Print "Want to save the game? Y/N.".
|
||||
| F7CB | LD HL,$B097 | HL=Messaging_WantToSaveTheGameYN. | ||
| F7CE | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| WantToSave_Loop | F7D1 | CALL GetUserInput | Call GetUserInput. | |
| F7D4 | CP $4E | Jump to QuitGame if the player pressed "N". | ||
| F7D6 | JR Z,QuitGame | |||
| F7D8 | CP $59 | Jump to WantToSave_Loop unless the player pressed "Y". | ||
| F7DA | JR NZ,WantToSave_Loop | |||
| F7DC | CALL SaveGame | Call SaveGame. | ||
| QuitGame | F7DF | LD HL,$E9BE | Return to the play-again question. | |
| F7E2 | EX (SP),HL | |||
| F7E3 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: F7BC | Up: Map | Next: F7E4 |