Skool Daze Routines
31985: Place routine address in bytes 105 and 106 of character's buffer
Used by the routines at 31996, 32048, 32158, 62208 and 62464.
BC Address of routine
H Character number (152-169)
31985 LD L,106 Place the address of the routine in bytes 105 and 106 of of the character's buffer
31987 LD (HL),B
31988 DEC L
31989 LD (HL),C
31990 POP DE Drop the return address off the stack and place its LSB in byte 99 of the character's buffer (bytes 99/100 normally hold the address of the current TAP routine)
31991 LD L,99
31993 LD (HL),E
31994 PUSH BC Make an indirect jump to the routine
31995 RET