![]() |
Routines |
| Prev: 26900 | Up: Map | Next: 26963 |
|
Asks message 26, do you want to restore a saved game. N returns. Y loads 321 bytes back over the room state and jumps into the ROM loader.
|
||||
|
Print "do you want to restore a saved game ?".
|
||||
| RestoreGame | 26916 | LD A,26 | Print SystemMessage_1A using PrintSystemMessage. | |
| 26918 | LD (27265),IX | Store the pointer at RestoreScratch. | ||
| 26922 | CALL PrintSystemMessage | Call PrintSystemMessage. | ||
|
Wait for Y or N.
|
||||
| RestoreGame_Key | 26925 | CALL WaitKeyDown | Call WaitKeyDown. | |
| 26928 | CP 78 | N (78) leaves the saved game alone. | ||
| 26930 | JR Z,RestoreGame_Load | |||
| 26932 | CP 89 | Anything except Y (89) asks again. | ||
| 26934 | JR NZ,RestoreGame_Key | |||
|
Load the saved state.
|
||||
| RestoreGame_Load | 26936 | CP 78 | N returns without loading. | |
| 26938 | RET Z | |||
| 26939 | LD HL,26963 | Point HL at Restored. | ||
| 26942 | LD IX,23943 | Point IX at the state block. | ||
| 26946 | LD DE,321 | 321 bytes. | ||
| 26949 | LD A,42 | Marker 42. | ||
| 26951 | SCF | Set carry. | ||
| 26952 | INC D | The border dance around the alternate accumulator. | ||
| 26953 | EX AF,AF' | |||
| 26954 | DEC D | |||
| 26955 | DI | Disable interrupts. | ||
| 26956 | LD A,15 | Border yellow. | ||
| 26958 | OUT (254),A | |||
| 26960 | JP 1377 | Jump into LD_BYTES at 1377. | ||
| Prev: 26900 | Up: Map | Next: 26963 |