![]() |
Routines |
| 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 |