Prev: 39066 Up: Map Next: 39263
39237: Jump Graphic Layout Routine
Used by the routine at 39066.
Input
A Index of graphic layout data instruction
IX Address of current graphic layout data instruction
Jump_GraphicLayoutRoutine 39237 INC IX Advance IX to first parameter byte in graphic layout data.
39239 SUB 230 Subtract 230 to get zero-based index of required instruction.
39241 ADD A,A Load BC with double index of graphic layout data instruction.
39242 LD C,A
39243 LD B,0
39245 PUSH HL Stash HL on the stack.
39246 LD HL,39263 Load HL with start address of table of addresses of graphic layout data handling routines.
39249 ADD HL,BC Add doubled instruction index as offset to HL to point to address of required routine.
39250 LD A,(HL) Modify JP instruction at 39260 with this address.
39251 LD (39261),A
39254 INC HL
39255 LD A,(HL)
39256 LD (39262),A
39259 POP HL Restore HL from the stack.
The operand of the instruction at 39260 represents the addresses of the required graphic layout data handling routine. This is modified by the instructions at 39251 and 39256.
39260 JP 0 Jump to appropriate instruction handling routine.
Prev: 39066 Up: Map Next: 39263