| Routines

31807: Restart the command list unless it's time to start the lesson

Used by the teachers' command lists 128, 130, 132, 134 and 184. Restarts the teacher's command list if it's not time to start the class (or the dinner period) yet; otherwise moves to the next command in the command list.
Input
H | Teacher's character number (163-166)
31807 | LD A,(32760) | Pick up the MSB of the lesson clock (0-21)
31810 | CP 15 | Is it time to start dinner or the lesson?
31812 | JP C,25256 | Move to the next command in the command list if so; otherwise continue into 31815 (restart command list)