Prev: 7D00 Up: Map Next: 7D20
7D15: Check whether ERIC is where he should be
Used by the routines at F048, F09B, F0BF, F0DA and F100. Returns with the zero flag set if and only if ERIC is where he should be during dinner, assembly, or class.
7D15 CALL $7D00 A=location identifier for ERIC
7D18 LD C,A Copy this to C
7D19 LD A,($7FE0) 7FE0 holds the current lesson descriptor
7D1C AND $0F Bits 0-3 tell us which room or area ERIC should be in
7D1E CP C Is ERIC in that room or area?
7D1F RET Return with the zero flag set if so
Prev: 7D00 Up: Map Next: 7D20