Prev: D700 Up: Map Next: D729
D711: Finish Step
Finishes the drawing of a step. The screen address that the drawing has reached is stored in SegmentScreenAddress (at FinishStep only), the number of steps drawn is counted and the next step of the segment is started, until the segment has no steps left.
Input
HL Screen address
FinishStep D711 LD ($CE49),HL Update the segment screen address.
This entry point is used by the routine at DrawFlatRows.
FinishStep_Exchange D714 EXX Switch to the alternate registers.
D715 INC D Advance D.
This entry point is used by the routines at NoteWallContact and SetUpFlatPiece.
FinishStep_Count D716 LD A,($5C2F) The flagged steps.
D719 INC A Advance A.
D71A LD ($5C2F),A Update the flagged steps.
D71D LD A,($CE54) The steps already drawn.
D720 INC A Advance A.
D721 LD ($CE54),A Update the steps already drawn.
This entry point is used by the routines at CountVerticalContact, FlagLeftContact, FlagRightContact, NextStep and SetUpFlatPiece.
FinishStep_Next D724 INC HL Advance HL.
D725 DEC C Step C back.
D726 JP NZ,NextStep Jump to NextStep if the zero flag is clear.
Continue on to EndSegment.
Prev: D700 Up: Map Next: D729