| Routines

F0BF: Make a teacher find ERIC if he's absent during dinner

Used by command list 0x1E. Makes the teacher run after and stalk ERIC until he goes to the dinner hall.
Input
H | 0xC8 (MR WACKER) or 0xC9 (MR WITHIT)
F0BF | LD DE,$7FE4 | Point DE at the MSB of the lesson clock (which starts off at 0x10)
F0C2 | LD A,(DE) | Pick this up in A
F0C3 | CP $0C | Is ERIC supposed to be in the dinner hall by now?
F0C5 | JR NC,$F0D6 | Jump if not
F0C7 | LD E,$80 | Set bit 6 at 7F80, indicating that ERIC should be in the dinner hall now
F0C9 | EX DE,HL
F0CA | SET 6,(HL)
F0CC | EX DE,HL
F0CD | CALL $7D15 | Reset the zero flag if ERIC is not in the dinner hall
This entry point is used by the routines at F100 and F0DA.
F0D0 | LD BC,$F09B | Redirect control to the routine at F09B (find ERIC) if ERIC is not where he should be, then return to F0D6 (below)
F0D3 | CALL NZ,$639F
F0D6 | JP $638C | Move to the next command in the command list