![]() |
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.
|
||||
| RestoreGame | 6924 | LD A,$1A | Remember the pointer and select message 1A. | |
| 6926 | LD ($6A81),IX | |||
| 692A | CALL PrintSystemMessage | Print the question. | ||
| RestoreGame_Key | 692D | CALL WaitKeyDown | Wait for a key. | |
| 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 | |||
| RestoreGame_Load | 6938 | CP $4E | N returns without loading. | |
| 693A | RET Z | |||
| 693B | LD HL,$6953 | Return through Restored with the state block in IX. | ||
| 693E | LD IX,$5D87 | |||
| 6942 | LD DE,$0141 | 0141 bytes, marker 2A, with carry set for a headerless block. | ||
| 6945 | LD A,$2A | |||
| 6947 | SCF | |||
| 6948 | INC D | The loader wants interrupts off, and the border dance around the alternate accumulator. | ||
| 6949 | EX AF,AF' | |||
| 694A | DEC D | |||
| 694B | DI | |||
| 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 |