![]() |
Routines |
| Prev: ABB1 | Up: Map | Next: ABDF |
|
Prints the score, asks whether to save, and sets flag bit 02.
|
||||
|
Do not offer to save.
|
||||
| Action_OfferSave | ABBD | JP NZ,Handler_RunScript_11 | Do not offer to save. | |
|
Show the score, then ask "Want to save the game? Y/N".
|
||||
| ABC0 | CALL Print_Scoring | Show the score. | ||
| ABC3 | LD HL,$0016 | Ask whether to save. | ||
| ABC6 | CALL PrintCompressedStringAndNewline | Call PrintCompressedStringAndNewline. | ||
|
N declines the save and Y writes the position to tape.
|
||||
| SavePrompt_Loop | ABC9 | CALL GetUserInput | Read the answer. | |
| ABCC | CP $4E | N declines the save. | ||
| ABCE | JR Z,Action_OfferSave_0 | |||
| ABD0 | CP $59 | Anything but Y asks again. | ||
| ABD2 | JR NZ,SavePrompt_Loop | |||
| ABD4 | CALL SaveGame | Write the position to tape. | ||
|
Remember that the offer was made by setting flag bit 02 then resume the script.
|
||||
| Action_OfferSave_0 | ABD7 | LD A,$02 | Flag bit 02 records the offer. | |
| ABD9 | CALL SetFlag | Call SetFlag. | ||
| ABDC | JP Handler_RunScript_11 | Resume the script. | ||
| Prev: ABB1 | Up: Map | Next: ABDF |