Prev: D729 Up: Map Next: D80A
D7F8: Finish Segment
Used by the routines at EndSegment and FillSlopeEdge.
Finishes a segment. When the world is scrolling vertically and steps of the segment have been counted, the edge of the segment is drawn by DrawVerticalEdge. Otherwise the attributes of the segment are coloured with ColourSegment.
FinishSegment D7F8 EXX Switch to the alternate registers.
D7F9 LD A,($CCBA) The vertical scroll speed.
D7FC AND A Jump to FinishSegment_Colour if A is zero.
D7FD JR Z,FinishSegment_Colour
D7FF LD A,($CE54) The steps already drawn.
D802 AND A Jump to DrawVerticalEdge if A is not zero.
D803 JP NZ,DrawVerticalEdge
This entry point is used by the routine at DrawVerticalEdge.
FinishSegment_Colour D806 CALL ColourSegment Call ColourSegment.
D809 EXX Switch to the alternate registers.
Continue on to NextSegment.
Prev: D729 Up: Map Next: D80A