Prev: 31637 Up: Map Next: 31648
31638: Rewind to a specific point in a 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.
Input
DE Command list entry address
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 interruptible subcommand routine address from bytes 105 and 106 of the teacher's buffer
31643 LD (HL),0
31645 JP 25256 Move to the next command in the command list
Prev: 31637 Up: Map Next: 31648