quill | Routines |
Prev: 64457 | Up: Map | Next: 64487 |
IX holds pointer to picture data
|
||||
PROCESS_GRAPHIC_INSTRUCTION | 64466 | LD A,(IX+0) | A=current picture data | |
64469 | AND 7 | Take lower three bits only | ||
64471 | SLA A | Multiply by 2 to get address offet | ||
64473 | LD HL,64495 | HL=routines table | ||
64476 | ADD A,L | HL now points at address of routine to execute | ||
64477 | LD L,A | |||
64478 | LD E,(HL) | |||
64479 | INC HL | |||
64480 | LD D,(HL) | DE=pointer to routine to execute | ||
64481 | PUSH DE | Push address of routine to execute onto the stack | ||
64482 | LD (64224),IX | Store picture data pointer for later | ||
64486 | RET | Execute given routine |
Prev: 64457 | Up: Map | Next: 64487 |