Routines
| Prev: B01C | Up: Map | Next: B0C6 |
B0AC: After a game-over message: get ready to load a saved game
|
||||||||||
| B0AC | LD HL,$0000 | Load HL with $0000 - The clock (9FDD, minutes elapsed) back to 0... | ||||||||
| B0AF | LD ($9FDD),HL | Store HL in minutes since the start (9FDD) | ||||||||
| B0B2 | LD IX,$9860 | Point IX at "The actor table: who acts, and where each is in..." (9860) - ...and the player's turn time (record at 9860, +6/+7) to 0 | ||||||||
| B0B6 | LD (IX+$06),L | Store L in byte +6 of the record at IX | ||||||||
| B0B9 | LD (IX+$07),H | Store H in byte +7 of the record at IX | ||||||||
| B0BC | INC HL | Step HL on to the next byte - The action takes 1 minute ($A01F) | ||||||||
| B0BD | LD ($A01F),HL | Store HL in $A01F in "Game variables" | ||||||||
| B0C0 | LD A,L | Copy L into A - $A0DA = 1 (a saved game is to be loaded); NZ | ||||||||
| B0C1 | LD ($A0DA),A | Store A in $A0DA in "The main loop: one minute of game time per..." | ||||||||
| B0C4 | AND A | Clear the carry flag for the caller (A is unchanged) | ||||||||
| B0C5 | RET | Return to the caller | ||||||||
| Prev: B01C | Up: Map | Next: B0C6 |