![]() |
Routines |
| Prev: 40749 | Up: Map | Next: 40822 |
|
Moves an object from one character to another.
|
||||
| ActionHandAnObjectOver | 40778 | LD DE,(46856) | Read the current object's record pointer. | |
| 40782 | LD IY,(46858) | Read the second object's record pointer. | ||
| 40786 | LD (46856),IY | Store the second object's record as the current one. | ||
| 40790 | LD (46858),DE | Store the saved record as the second object's. | ||
| 40794 | LD BC,(46824) | Read *CurrentObject. | ||
| 40798 | LD A,B | Take the second object. | ||
| 40799 | LD (46824),A | Update *CurrentObject. | ||
| 40802 | LD A,C | Take the current object. | ||
| 40803 | LD (46825),A | Update *46825. | ||
| 40806 | CALL TriggerAction | Call TriggerAction to call the handler stored for this action. | ||
| 40809 | LD (46824),BC | Update *CurrentObject. | ||
| 40813 | LD (46856),DE | Update *46856. | ||
| 40817 | LD (46858),IY | Update *46858. | ||
| 40821 | RET | Return. | ||
| Prev: 40749 | Up: Map | Next: 40822 |