Prev: 44175 Up: Map Next: 44198
44180: Read The Next Coordinate Pair
Used by the routine at ClearCoordinateBuffer.
Points at the co-ordinate data and skips the token check when the next pair is empty.
ReadBytePointer 44180 LD HL,43694 Use the buffer: co-ordinate data (Buffer_CoordinateData+2).
This entry point is used by the routine at PointPictureOrigin.
ReadBytePointer_CheckToken 44183 LD A,(HL) Go to ReadBytePointer_0 if this word is zero.
44184 INC HL
44185 OR (HL)
44186 JR Z,ReadBytePointer_0
44188 INC HL Advance through the text.
44189 LD A,(HL) Read the co-ordinate stored at the pointer.
44190 INC HL Advance through this record.
44191 OR (HL) Merge the next co-ordinate into the pair.
44192 RET NZ Return when the co-ordinate pair is not empty.
ReadBytePointer_0 44193 LD (HL),B Store B at the second byte of this word.
44194 DEC HL Step back to the first byte.
44195 LD (HL),C Store C there.
44196 XOR A Clear A, as the pair was empty and has now been filled from BC.
44197 RET Return.
View the equivalent code in;
Prev: 44175 Up: Map Next: 44198