Prev: D937 Up: Map Next: D990
D979: Note Segment Start
Used by the routine at CountVerticalContact.
Stores the pixel position of the start of the segment, with the offsets of the view added, in StartColumn and StartRow.
NoteSegmentStart D979 LD A,($CE43) The segment column.
D97C LD B,A B=A.
D97D LD A,($CE41) The horizontal offset.
D980 ADD A,B A gains B.
D981 LD ($CE55),A Update the start column.
D984 LD A,($CE44) The segment row.
D987 LD B,A B=A.
D988 LD A,($CE42) The vertical offset.
D98B ADD A,B A gains B.
D98C LD ($CE56),A Update the start row.
D98F RET Return.
Prev: D937 Up: Map Next: D990