Prev: 39593 Up: Map Next: 39631
39609: 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 (0)
IX Address of next graphic layout data instruction to process
39609 LD B,0 Prepare to recalculate display buffer address.
39611 DEC (IX+0) Decrease timer value.
39614 JR Z,39622 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 39593.
39616 CALL 39655 Advance to next instruction and process.
39619 JP 39070
39622 CALL 39631 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.
39625 LD (IX+1),E
39628 JP 39070 Read / process data at address in IX.
Prev: 39593 Up: Map Next: 39631