| The Hobbit (v1.0) | Routines |
| Prev: A178 | Up: Map | Next: A1FD |
|
The target must be tied to the rope ('the X is not tied'). It then goes to whoever holds the rope.
|
||||
| A1E4 | LD IX,($B5F8) | IX = the target's own record | ||
| A1E8 | LD A,(IX+$01) | Is it actually held by the rope (object 18)? | ||
| A1EB | CP $12 | |||
| A1ED | LD HL,$AF84 | "the X is not tied." | ||
| A1F0 | JP NZ,$72D4 | No: say so and stop | ||
| A1F3 | CALL $9C99 | Dry run? Then stop here: it would work | ||
| A1F6 | LD A,($C256) | A = whoever holds the rope itself | ||
| A1F9 | LD (IX+$01),A | The target now belongs to them too | ||
| A1FC | RET | |||
| Prev: A178 | Up: Map | Next: A1FD |