| Routines

31895: Make a teacher perform dinner duty (2)

The address of this primary command routine is placed into bytes 99 and 100 of the teacher's buffer by the routine at 31854. The teacher has walked to the left end of the dinner hall, so it's time to check whether ERIC is present.
31895 | CALL 31188 | Set the zero flag if ERIC is in the dinner hall
31898 | LD DE,30014 | D=117 (LSB of 31861), E=62 (x-coordinate of the right end of the teacher's dinner duty orbit)
31901 | JR 31867 | Go and look for ERIC, or go to the right end of the dinner hall