Prev: 6CD2 Up: Map Next: 6CEC
6CD4: Prepare the doors, windows, cups and bike for new game
Used by the routine at F5BE. Opens the boys' skool door and the skool gate, closes all the other doors, closes the windows, empties the cups, and chains the bike to the tree.
6CD4 LD HL,$E156 Point HL at the first entry in the initialisation table at E156
6CD7 LD E,(HL) Pick up an entry from the initialisation table in DE, which will then point at a data table concerning a door, window, cup or bike
6CD9 LD D,(HL)
6CDA INC L Move HL along to the next entry in the initialisation table and save the pointer for now
6CDC EX DE,HL Point HL at the door/window/cup/bike data table
6CDD CALL $6C18 Alter UDG references and attributes in the play area
6CE0 POP HL Restore the pointer to the initialisation table
6CE1 LD A,L Have we reached the end of the initialisation table?
6CE2 CP $70
6CE4 JR NZ,$6CD7 Jump back if not
6CE6 LD HL,$7FF4 7FF4 holds the door/window flags
6CE9 LD (HL),$18 Set bits 3 and 4: skool gate and boys' skool door open
Prev: 6CD2 Up: Map Next: 6CEC