![]() |
Routines |
| Prev: 59199 | Up: Map | Next: 59349 |
|
Used by the routine at Process_GraphicLayoutData.
Dispatch graphic layout opcode 238–255 via TableGraphicLayoutHandlers. The target address is patched into the
JP at 59346.
|
||||||||||
| Jump_GraphicLayoutRoutine | 59323 | INC IX | Advance IX past the graphic-layout operand byte. | |||||||
| 59325 | SUB 238 | A-=238. | ||||||||
| 59327 | ADD A,A | Double A to form a word index into the table. | ||||||||
| 59328 | LD E,A | Copy A into E as a saved coordinate / value. | ||||||||
| 59329 | LD D,0 | Clear D (high byte of a pointer/offset). | ||||||||
| 59331 | PUSH HL | Stash HL on the stack. | ||||||||
| 59332 | LD HL,59349 | Point HL at Table of Addresses of Graphic Layout Handling Routines (TableGraphicLayoutHandlers). | ||||||||
| 59335 | ADD HL,DE | HL+=DE. | ||||||||
| 59336 | LD A,(HL) | Fetch the next script byte. | ||||||||
| 59337 | LD (59347),A | Set 59347. | ||||||||
| 59340 | INC HL | Advance the graphic-layout pointer in HL by one byte. | ||||||||
| 59341 | LD A,(HL) | Fetch the next script byte. | ||||||||
| 59342 | LD (59348),A | Set 59348. | ||||||||
| 59345 | POP HL | Restore HL from the stack. | ||||||||
| 59346 | JP 0 | Jump to 0000. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: 59199 | Up: Map | Next: 59349 |