Skool Daze Routines
31638: Rewind to specific instruction in command list
Used by the routine at 31648. Partially rewinds a teacher's command list after he has fetched the truant ERIC, thus making him resume normal classroom duties.
DE Address of entry in command list
H Teacher's character number (163-166)
L 118
31638 LD (HL),D Place the command list entry address into bytes 117 and 118 of the teacher's buffer, which will make the teacher restart the command list from that point
31639 DEC L
31640 LD (HL),E
31641 LD L,106 Remove the routine address from bytes 105 and 106 of the teacher's buffer
31643 LD (HL),0
31645 JP 25256 Move to the next instruction in the command list