![]() |
Routines |
| Prev: 49340 | Up: Map | Next: 49406 |
|
Used by the routine at LoadGameState.
Reads a stored game back into play.
|
||||
| LoadGame | 49375 | LD (49417),DE | Record the tape header: saved game. | |
| 49379 | LD (49419),IX | |||
|
"PLAY SAVED GAME TAPE TO BE LOADED
.".
|
||||
| 49383 | LD HL,49340 | Take the messaging: play saved game tape, then call PrintString to print string. | ||
| 49386 | CALL PrintString | |||
| LoadGame_TryTape | 49389 | LD IX,49406 | Use the tape header: saved game (49406). | |
| 49393 | LD DE,17 | |||
| 49396 | LD A,0 | Set A to 0 to indicate this is a header block. | ||
| 49398 | AND A | Clear the carry flag so LD_BYTES verifies the header against 49406 instead of loading it. | ||
| 49399 | CALL 1366 | Call LD_BYTES. | ||
| 49402 | JR NC,LoadGame_TryTape | Jump back to LoadGame_TryTape if there was a tape loading error to try again. | ||
| 49404 | JR LoadGameData | Jump back to LoadGameData once the game block has loaded. | ||
| Prev: 49340 | Up: Map | Next: 49406 |