Prev: F460 Up: Map Next: F483
F46C: Restart the command list unless the boys' skool door is closed
Used by command lists 0x16 and 0x18. If the boys' skool door is open, makes MISS TAKE close the drinks cabinet door (if it's open) and restart the command list; otherwise moves to the next command in the command list.
Input
H 0xCC (MISS TAKE)
F46C LD A,($7FF4) 7FF4 holds the door/window status flags
F46F BIT 3,A Is the boys' skool door closed?
F471 JP Z,$638C Move to the next command in the command list if so
F474 BIT 5,A Is the drinks cabinet door closed?
F476 JP Z,$F0B8 Restart the command list if so
F479 LD L,$14 Point HL at byte 0x14 of MISS TAKE's buffer
F47B LD (HL),$00 Place 0x00 (close door) in byte 0x14, and 0x20 (bit 5 set: drinks cabinet door) in byte 0x13, ready for the routine at 70B7
F47D DEC L
F47E LD (HL),$20
F480 JP $70A8 Close the drinks cabinet door
Prev: F460 Up: Map Next: F483