Prev: 9F2D Up: Map Next: 9F76
9F4A: Action: Hand An Object Over
Used by the routines at Action_LeaveIfTheWayIsOpen, Action_ThrowAt and ActionTie.
Moves an object from one character to another.
ActionHandAnObjectOver 9F4A LD DE,($B708) Read the current object's record pointer.
9F4E LD IY,($B70A) Read the second object's record pointer.
9F52 LD ($B708),IY Store the second object's record as the current one.
9F56 LD ($B70A),DE Store the saved record as the second object's.
9F5A LD BC,($B6E8) Read *CurrentObject.
9F5E LD A,B Take the second object.
9F5F LD ($B6E8),A Update *CurrentObject.
9F62 LD A,C Take the current object.
9F63 LD ($B6E9),A Update *B6E9.
9F66 CALL TriggerAction Call TriggerAction to call the handler stored for this action.
9F69 LD ($B6E8),BC Update *CurrentObject.
9F6D LD ($B708),DE Update *B708.
9F71 LD ($B70A),IY Update *B70A.
9F75 RET Return.
Prev: 9F2D Up: Map Next: 9F76