Prev: AC8F Up: Map Next: ACA6
AC94: 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 AC94 LD HL,$AAAE Use the buffer: co-ordinate data (Buffer_CoordinateData+02).
This entry point is used by the routine at PointPictureOrigin.
ReadBytePointer_CheckToken AC97 LD A,(HL) Go to ReadBytePointer_0 if this word is zero.
AC98 INC HL
AC99 OR (HL)
AC9A JR Z,ReadBytePointer_0
AC9C INC HL Advance through the text.
AC9D LD A,(HL) Read the co-ordinate stored at the pointer.
AC9E INC HL Advance through this record.
AC9F OR (HL) Merge the next co-ordinate into the pair.
ACA0 RET NZ Return when the co-ordinate pair is not empty.
ReadBytePointer_0 ACA1 LD (HL),B Store B at the second byte of this word.
ACA2 DEC HL Step back to the first byte.
ACA3 LD (HL),C Store C there.
ACA4 XOR A Clear A, as the pair was empty and has now been filled from BC.
ACA5 RET Return.
View the equivalent code in;
Prev: AC8F Up: Map Next: ACA6