Prev: 56544 Up: Map Next: 56616
56577: Move Object
Moves an object by adding its velocity along each axis to its position.
Input
IX Object
MoveObject 56577 LD A,(IX+10) Add the velocity along the X axis to the X position of the object.
56580 CALL SignExtendA
56583 LD C,(IX+1)
56586 LD B,(IX+2)
56589 ADD HL,BC
56590 LD (IX+1),L
56593 LD (IX+2),H
56596 LD A,(IX+11) Add the velocity along the Y axis to the Y position of the object.
56599 CALL SignExtendA
56602 LD C,(IX+3)
56605 LD B,(IX+4)
56608 ADD HL,BC
56609 LD (IX+3),L
56612 LD (IX+4),H
56615 RET Return.
View the equivalent code in;
Prev: 56544 Up: Map Next: 56616