Prev: 9BB6 Up: Map Next: 9BDA
9BC9: Graphic layout routine: (240) Start loop (02 / 02)
Start a loop in graphic layout data. The parameter is the repeat count. The current value of the repeat counter is stored at 6D9C and the address of the next instruction (i.e. the first instruction that is processed in each loop) is stored at 6DD9.
See also routine at 9BA5.
Used by the routine at Jump_GraphicLayoutRoutine.
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
9BC9 LD A,(IX+$00) Store repeat count at R$6D94.
9BCC LD ($6D94),A
9BCF INC IX Advance IX to next position in graphic layout data and store at 6DD9.
9BD1 LD ($6DD9),IX
9BD5 LD B,$00 Prepare to recalculate display buffer address.
9BD7 JP $989E Read / process data at address in IX.
Prev: 9BB6 Up: Map Next: 9BDA