Routines

32021: Check if ERIC is where he should be


Used by routines at 61512, 61595, 61631, 61658 and 61696. It returns with the zero flag set if ERIC is where he should be.

32021 CD007D CALL 32000 Get location identifier for ERIC into A
32024 4F LD C,A Transfer it to C
32025 3AE07F LD A,(32736) Get current lesson identifier in A
32028 E60F AND 15 Bits 0-3 tell us which room ERIC should be in
32030 B9 CP C Is ERIC in that room?
32031 C9 RET Return with the zero flag set if so