Prev: 9AA9 Up: Map Next: 9ACF
9AB9: Graphic layout routine: (246) Decrease timer value, and if zero, reset and write random attribute from list into next instruction
Input
IX Address of first parameter in current graphic layout data instruction
Output
B Do-not-recalculate-display-buffer-address flag (00)
IX Address of next graphic layout data instruction to process
9AB9 LD B,$00 Prepare to recalculate display buffer address.
9ABB DEC (IX+$00) Decrease timer value.
9ABE JR Z,$9AC6 If timer is zero, then reset timer, advance to next instruction and set that instruction's attribute to random value from sequence.
This entry point is used by the routine at 9AA9.
9AC0 CALL $9AE7 Advance to next instruction and process.
9AC3 JP $989E
9AC6 CALL $9ACF Reset timer to maximum, advance IX to start of next instruction and set second value here (attribute) to random value from sequence of data following previous instruction.
9AC9 LD (IX+$01),E
9ACC JP $989E Read / process data at address in IX.
Prev: 9AA9 Up: Map Next: 9ACF