Prev: 45785 Up: Map Next: 45823
45803: Compare Position
Used by the routine at HandleFatBottomBlock.
Compares the position of the object with the one saved by SavePosition.
Input
IX The address of the object
Output
F Zero flag set if the position is the same
Compare x, y and z with SavedPosition.
ComparePosition 45803 LD HL,23323 Point HL at SavedPosition.
45806 LD A,(IX+1) Fetch the x position.
45809 CP (HL) Compare it with the saved x position.
45810 RET NZ Return if it is different.
45811 INC HL Move on.
45812 LD A,(IX+2) Fetch the y position.
45815 CP (HL) Compare it with the saved y position.
45816 RET NZ Return if it is different.
45817 INC HL Move on.
45818 LD A,(IX+3) Fetch the z position.
45821 CP (HL) Compare it with the saved z position.
45822 RET Return.
Prev: 45785 Up: Map Next: 45823