Routines
| Prev: C0BC | Up: Map | Next: C0FE |
C0DF: Load the saved-game block from tape
|
||||||||||||||
| C0DF | LD ($C109),DE | Store DE in C109 in "The saved game's tape header: a CODE file..." - Keep the block's length (DE) and start (IX) at C109/C10B | ||||||||||||
| C0E3 | LD ($C10B),IX | Store IX in C10B in "The saved game's tape header: a CODE file..." | ||||||||||||
| C0E7 | LD HL,$C0BC | Point HL at "Tape message: 'PLAY SAVED GAME TAPE TO BE..." (C0BC) - Print 'PLAY SAVED GAME TAPE TO BE LOADED' (C1CB) | ||||||||||||
| C0EA | CALL $C1CB | Call the routine "Print a message: plain ASCII, last byte has bit 7 set" (C1CB) | ||||||||||||
| C0ED | LD IX,$C0FE | Point IX at "The saved game's tape header: a CODE file 'SHD..." (C0FE) - Read a 17-byte header into C0FE with the ROM's LD-BYTES ($0556, A = 0: a header) | ||||||||||||
| C0F1 | LD DE,$0011 | Load DE with $0011 | ||||||||||||
| C0F4 | LD A,$00 | Load A with $00 | ||||||||||||
| C0F6 | AND A | Test A for zero (this leaves A as it was and clears carry) | ||||||||||||
| C0F7 | CALL $0556 | Call the ROM tape-load routine ($0556) - (carry clear: no header read - try again) | ||||||||||||
| C0FA | JR NC,$C0ED | If the carry flag is clear, go back to C0ED | ||||||||||||
| C0FC | JR $C089 | Then read the block itself (C089, A = $FF) | ||||||||||||
| Prev: C0BC | Up: Map | Next: C0FE |