| Routines

32021: Check whether ERIC is where he should be

Used by the routines at 61512, 61595, 61631, 61658 and 61696. Returns with the zero flag set if and only if ERIC is where he should be during dinner, assembly, or class.
32021 | CALL 32000 | A=location identifier for ERIC
32024 | LD C,A | Copy this to C
32025 | LD A,(32736) | 32736 holds the current lesson descriptor
32028 | AND 15 | Bits 0-3 tell us which room or area ERIC should be in
32030 | CP C | Is ERIC in that room or area?
32031 | RET | Return with the zero flag set if so