Routines

62572: Repeat table of A&P until boys' skool door is closed


Used by tables of A&P numbers 22 and 24

H 204 (MISS TAKE)

62572 3AF47F LD A,(32756) Doors flags
62575 CB5F BIT 3,A Is the boys' skool door closed?
62577 CA8C63 JP Z,25484 Move to next instruction in table of A&P if so
62580 CB6F BIT 5,A Is the drinks cabinet door closed?
62582 CAB8F0 JP Z,61624 Repeat table of A&P if so
62585 2E14 LD L,20
62587 3600 LD (HL),0 0=close door
62589 2D DEC L
62590 3620 LD (HL),32 Bit 5 set: drinks cabinet door
62592 C3A870 JP 28840 Close the drinks cabinet door