Prev: C486 Up: Map Next: C4A2
C48F: Transform Item
TransformItem C48F LD A,B Call GetObjectLocation to fetch where the original object is.
C490 CALL GetObjectLocation
C493 PUSH BC Call UpdateObjectLocation to clear the original object.
C494 PUSH AF
C495 LD C,$00
C497 CALL UpdateObjectLocation
C49A POP AF Restore the new object and its destination from the stack.
C49B POP BC
C49C LD B,C Call UpdateObjectLocation to put the new object in its place.
C49D LD C,A
C49E CALL UpdateObjectLocation
C4A1 RET Return.
Prev: C486 Up: Map Next: C4A2