Routines |
Prev: 9754 | Up: Map | Next: 978B |
Used by the routines at PrintCharacter and Controller_CharacterPrinting.
|
||||
Handler_ControlCode | 9776 | LD A,($F814) | Retrieve *Buffer_ControlCode and store it in A. | |
9779 | ADD A,A | Multiply it by 02. | ||
977A | LD HL,$9985 | HL=JumpTable_ControlCodes. | ||
977D | ADD A,L | Calculate the offset. | ||
977E | LD L,A | |||
977F | JR NC,ControlCode_NoCarry | Jump to ControlCode_NoCarry if there's no carry. | ||
9781 | INC H | Handle the carry. | ||
ControlCode_NoCarry | 9782 | LD A,(HL) | Get the referenced address from the jump table. | |
9783 | INC HL | |||
9784 | LD H,(HL) | |||
9785 | LD L,A | |||
9786 | PUSH HL | Stash the handler address on the stack. | ||
9787 | LD HL,$F818 | HL=F818. | ||
978A | RET | Return. |
Prev: 9754 | Up: Map | Next: 978B |