Prev: 9BA0 Up: Map Next: 9BB6
9BA5: Graphic layout routine: (238) Start loop (01 / 02)
Start a loop in graphic layout data. The parameter is the repeat count. The current value of the repeat counter is stored at 6D93 and the address of the next instruction (i.e. the first instruction that is processed in each loop) is stored at 6DD7.
See also routine at 9BC9.
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
9BA5 LD A,(IX+$00) Store repeat count at 6D93.
9BA8 LD ($6D93),A
9BAB INC IX Advance IX to next position in graphic layout data and store at 6DD7.
9BAD LD ($6DD7),IX
9BB1 LD B,$00 Prepare to recalculate display buffer address.
9BB3 JP $989E Read / process data at address in IX.
Prev: 9BA0 Up: Map Next: 9BB6