| Routines

7C97: Make a teacher perform dinner duty (2)

The address of this primary command routine is placed into bytes 0x63 and 0x64 of the teacher's buffer by the routine at 7C6E. The teacher has walked to the left end of the dinner hall, so it's time to check whether ERIC is present.
7C97 | CALL $79D4 | Set the zero flag if ERIC is in the dinner hall
7C9A | LD DE,$753E | D=0x75 (LSB of 7C75), E=62 (x-coordinate of the right end of the teacher's dinner duty orbit)
7C9D | JR $7C7B | Go and look for ERIC, or go to the right end of the dinner hall