![]() |
Routines |
| Prev: F7BC | Up: Map | Next: F7E4 |
|
Carry out the "Quit" command.
|
||||
| Action_Quit | F7C4 | CALL ParserValidateNoDirectObject | Call ParserValidateNoDirectObject to check that the command has no object, and return if it does not. | |
| F7C7 | RET C | |||
| F7C8 | CALL Messaging_YouHaveScored_Print | Call Messaging_YouHaveScored_Print to tell the player the score. | ||
|
Print it and start a new line: Want to save the game? Y/N..
|
||||
| F7CB | LD HL,$B097 | Point at the message and print it and start a new line. | ||
| F7CE | CALL PrintStringAndANewline | |||
| Action_Quit_Loop | F7D1 | CALL GetUserInput | Call GetUserInput to read the player's key. | |
| F7D4 | CP $4E | Branch to Action_Quit_Next when the player pressed "N". | ||
| F7D6 | JR Z,Action_Quit_Next | |||
| F7D8 | CP $59 | Branch to Action_Quit_Loop unless the player pressed "Y". | ||
| F7DA | JR NZ,Action_Quit_Loop | |||
| F7DC | CALL SaveGame | Call SaveGame to write the game to tape. | ||
| Action_Quit_Next | 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 |