![]() |
Routines |
| Prev: 6914 | Up: Map | Next: 6953 |
|
Asks message 1A, do you want to restore a saved game. N returns. Y loads 0141 bytes back over the room state and jumps into the ROM loader.
|
||||
|
Print "do you want to restore a saved game ?".
|
||||
| RestoreGame | 6924 | LD A,$1A | Print SystemMessage_1A using PrintSystemMessage. | |
| 6926 | LD ($6A81),IX | Store the pointer at RestoreScratch. | ||
| 692A | CALL PrintSystemMessage | Call PrintSystemMessage. | ||
|
Wait for Y or N.
|
||||
| RestoreGame_Key | 692D | CALL WaitKeyDown | Call WaitKeyDown. | |
| 6930 | CP $4E | N (4E) leaves the saved game alone. | ||
| 6932 | JR Z,RestoreGame_Load | |||
| 6934 | CP $59 | Anything except Y (59) asks again. | ||
| 6936 | JR NZ,RestoreGame_Key | |||
|
Load the saved state.
|
||||
| RestoreGame_Load | 6938 | CP $4E | N returns without loading. | |
| 693A | RET Z | |||
| 693B | LD HL,$6953 | Point HL at Restored. | ||
| 693E | LD IX,$5D87 | Point IX at the state block. | ||
| 6942 | LD DE,$0141 | 0141 bytes. | ||
| 6945 | LD A,$2A | Marker 2A. | ||
| 6947 | SCF | Set carry. | ||
| 6948 | INC D | The border dance around the alternate accumulator. | ||
| 6949 | EX AF,AF' | |||
| 694A | DEC D | |||
| 694B | DI | Disable interrupts. | ||
| 694C | LD A,$0F | Border yellow. | ||
| 694E | OUT ($FE),A | |||
| 6950 | JP $0561 | Jump into LD_BYTES at 0561. | ||
| Prev: 6914 | Up: Map | Next: 6953 |