Routines
| Prev: DCBB | Up: Map | Next: DCD2 |
DCC1: Default action: take (TAKE, GET, CARRY, TAKE FROM, TAKE OUT OF)
|
The body is three instructions: the target's container becomes the actor - so carrying something is the same containment link (C86E's field +1) as sitting in a chair or a note being inside a safe.
|
||||||||||||||
| DCC1 | DEFB $69,$10,$A2,$DC | Action record header: flags $69; bit 5: test D078 first; bit 6: pre-check at DCA2; byte 1 $10 | ||||||||||||
| DCC5 | LD IX,($A013) | IX = the target's own record | ||||||||||||
| DCC9 | LD A,($A036) | Read $A036 in "Game variables" into A - Its container becomes the actor taking it | ||||||||||||
| DCCC | LD (IX+$01),A | Store A in byte +1 of the record at IX | ||||||||||||
| DCCF | OR $01 | Succeed | ||||||||||||
| DCD1 | RET | Return to the caller | ||||||||||||
| Prev: DCBB | Up: Map | Next: DCD2 |