Prev: E73F Up: Map Next: E7D5
E7BB: Jump Graphic Layout Routine
Used by the routine at Process_GraphicLayoutData.
Dispatch graphic layout opcode EE–FF via TableGraphicLayoutHandlers. The target address is patched into the JP at E7D2.
Input
A Graphic layout opcode
IX Address of the opcode byte
Jump_GraphicLayoutRoutine E7BB INC IX Advance IX past the graphic-layout operand byte.
E7BD SUB $EE A-=EE.
E7BF ADD A,A Double A to form a word index into the table.
E7C0 LD E,A Copy A into E as a saved coordinate / value.
E7C1 LD D,$00 Clear D (high byte of a pointer/offset).
E7C3 PUSH HL Stash HL on the stack.
E7C4 LD HL,$E7D5 Point HL at Table of Addresses of Graphic Layout Handling Routines (TableGraphicLayoutHandlers).
E7C7 ADD HL,DE HL+=DE.
E7C8 LD A,(HL) Fetch the next script byte.
E7C9 LD ($E7D3),A Set E7D3.
E7CC INC HL Advance the graphic-layout pointer in HL by one byte.
E7CD LD A,(HL) Fetch the next script byte.
E7CE LD ($E7D4),A Set E7D4.
E7D1 POP HL Restore HL from the stack.
E7D2 JP $0000 Jump to 0000.
View the equivalent code in;
Prev: E73F Up: Map Next: E7D5