Prev: 43732 Up: Map Next: 43767
43757: Test Position Unchanged
Tests whether the position an actor has been moved to is the same as the position it started from.
Input
DE The new position of the actor (E is X and D is Y)
IX Actor record
Output
F Zero flag set if the position is the same as the position in the record
TestPositionUnchanged 43757 LD A,E Fetch the new X position of the actor.
43758 XOR (IX+3) Compare the new X position with the X position of the actor.
43761 RET NZ Return if the X positions are different.
43762 LD A,D Fetch the new Y position of the actor.
43763 XOR (IX+4) Compare the new Y position with the Y position of the actor.
43766 RET Return.
Prev: 43732 Up: Map Next: 43767