Prev: 55081 Up: Map Next: 55306
55288: 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 55288 EXX Switch to the alternate registers.
55289 LD A,(52410) The vertical scroll speed.
55292 AND A Jump to FinishSegment_Colour if A is zero.
55293 JR Z,FinishSegment_Colour
55295 LD A,(52820) The steps already drawn.
55298 AND A Jump to DrawVerticalEdge if A is not zero.
55299 JP NZ,DrawVerticalEdge
This entry point is used by the routine at DrawVerticalEdge.
FinishSegment_Colour 55302 CALL ColourSegment Call ColourSegment.
55305 EXX Switch to the alternate registers.
Continue on to NextSegment.
Prev: 55081 Up: Map Next: 55306