Prev: CCBF Up: Map Next: CD08
CCF5: Advance Screen Address
Used by the routine at SetUpPiece.
Moves the screen address of the segment that is being drawn along by the column step of its type, and then clears the column step and the horizontal step ready for the next segment.
AdvanceScreenAddress CCF5 LD A,($CE49) The segment screen address.
CCF8 LD B,A B=A.
CCF9 LD A,($CE36) The column step.
CCFC ADD A,B A gains B.
CCFD LD ($CE49),A Update the segment screen address.
CD00 XOR A Clear A.
CD01 LD ($CE36),A Update the column step.
CD04 LD ($CE35),A Update the horizontal step.
CD07 RET Return.
Prev: CCBF Up: Map Next: CD08