Prev: C0BC Up: Map Next: C0FE
C0DF: Load Game
Used by the routine at LoadGameState.
Reads a stored game back into play.
LoadGame C0DF LD ($C109),DE Record the tape header: saved game.
C0E3 LD ($C10B),IX
"PLAY SAVED GAME TAPE TO BE LOADED .".
C0E7 LD HL,$C0BC Take the messaging: play saved game tape, then call PrintString to print string.
C0EA CALL PrintString
LoadGame_TryTape C0ED LD IX,$C0FE Use the tape header: saved game (C0FE).
C0F1 LD DE,$0011
C0F4 LD A,$00 Set A to 00 to indicate this is a header block.
C0F6 AND A Clear the carry flag so LD_BYTES verifies the header against C0FE instead of loading it.
C0F7 CALL $0556 Call LD_BYTES.
C0FA JR NC,LoadGame_TryTape Jump back to LoadGame_TryTape if there was a tape loading error to try again.
C0FC JR LoadGameData Jump back to LoadGameData once the game block has loaded.
Prev: C0BC Up: Map Next: C0FE