Skool Daze Routines
31807: Restart command list unless it's time to start lesson
Used in the teachers' command lists 128, 130, 132, 134 and 184.
H Character number of teacher (163-166)
31807 LD A,(32760) A=MSB of lesson time counter (0-21)
31810 CP 15 Is it time to start the lesson?
31812 JP C,25256 Move to the next instruction in the command list if so
31815 LD A,(32761) A=current lesson number (0-63)
31818 LD E,A E=lesson identifier from main timetable (224-255)
31819 LD B,1
31821 LD D,254
31823 LD A,(DE)
31824 LD E,A
31825 CALL 26395 Restart this teacher's command list
31828 JP 25252 Remove any routine address from bytes 105 and 106 of the teacher's buffer