![]() |
Routines |
| Prev: DCE0 | Up: Map | Next: DD28 |
|
Used by the routines at UpdateGhost, UpdateCreature, UpdateSpore, UpdateFragment, UpdateShot, UpdateThrownItem, UpdateMonster, UpdateVillageItem and SpeedPlayerUp.
Moves an object by adding its velocity along each axis to its position.
|
||||||||
| MoveObject | DD01 | LD A,(IX+$0A) | Add the velocity along the X axis to the X position of the object. | |||||
| DD04 | CALL SignExtendA | |||||||
| DD07 | LD C,(IX+$01) | |||||||
| DD0A | LD B,(IX+$02) | |||||||
| DD0D | ADD HL,BC | |||||||
| DD0E | LD (IX+$01),L | |||||||
| DD11 | LD (IX+$02),H | |||||||
| DD14 | LD A,(IX+$0B) | Add the velocity along the Y axis to the Y position of the object. | ||||||
| DD17 | CALL SignExtendA | |||||||
| DD1A | LD C,(IX+$03) | |||||||
| DD1D | LD B,(IX+$04) | |||||||
| DD20 | ADD HL,BC | |||||||
| DD21 | LD (IX+$03),L | |||||||
| DD24 | LD (IX+$04),H | |||||||
| DD27 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: DCE0 | Up: Map | Next: DD28 |