| The Hobbit (v1.0) | Routines |
| Prev: A45D | Up: Map | Next: A486 |
|
The default handler for CLIMB OUT OF. The actor must be inside the target, which must be open ('the barrel is closed'). The actor's holder is cleared: he is out.
|
||||
| A468 | LD IY,($B5FC) | IY = the actor's own record | ||
| A46C | LD A,($B5D9) | Is the actor actually inside the target? | ||
| A46F | CP (IY+$01) | |||
| A472 | JP NZ,$9EBF | No: fail with the usual message | ||
| A475 | CALL $9B25 | IX = the target's own record | ||
| A478 | CALL $A4C3 | Is it open? | ||
| A47B | JP Z,$A09C | No: say so and stop | ||
| A47E | CALL $9C99 | Dry run? Then stop here: it would work | ||
| A481 | LD (IY+$01),$FF | The actor is held by nobody now: they are out | ||
| A485 | RET | |||
| Prev: A45D | Up: Map | Next: A486 |