Prev: 35206 Up: Map Next: 35239
35214: Copy Position
Used by the routines at SpawnEnemy and StartDebrisPiece.
Copies the position of one object to another.
Input
IX Address of the object to copy to
IY Address of the object to copy from
CopyPosition 35214 LD A,(IY+1) Copy the map column.
35217 LD (IX+1),A
35220 LD A,(IY+2) Copy the horizontal position.
35223 LD (IX+2),A
35226 LD A,(IY+4) Copy the map zone.
35229 LD (IX+4),A
35232 LD A,(IY+5) Copy the vertical position.
35235 LD (IX+5),A
CopyPosition_Return 35238 RET Return.
Prev: 35206 Up: Map Next: 35239