| The Hobbit (v1.0) | Routines |
| Prev: A655 | Up: Map | Next: A69E |
|
Bilbo cannot reach the window unless something (or someone) is holding him up: if nothing holds him, 'you cannot reach the window.' Characters, and a Bilbo who is being carried, are passed on to the normal handlers for going through it (8E9D), breaking it (9257) or looking through it (8E4E). The HELP message in the goblins' dungeon hints at this: 'a window should be no obstacle to a thief with friends'.
|
||||
| A678 | LD A,($B5DB) | Is the actor Bilbo? | ||
| A67B | CP $00 | |||
| A67D | JP NZ,$A68B | No: characters can always reach it, below | ||
| A680 | LD A,($C00C) | Yes - is Bilbo currently being held up by something? | ||
| A683 | CP $FF | |||
| A685 | LD HL,$B00D | "you cannot reach the window." | ||
| A688 | JP Z,$72D4 | Held by nobody: he cannot reach it - say so and stop | ||
| A68B | LD A,($B5D8) | A = the current action | ||
| A68E | CP $1E | Is it GO THROUGH? | ||
| A690 | JP Z,$8E9D | Yes: go through it as usual | ||
| A693 | CP $0B | Is it STRIKE (breaking it)? | ||
| A695 | JP Z,$9257 | Yes: break it as usual | ||
| A698 | CP $18 | Is it LOOK THROUGH? | ||
| A69A | JP Z,$8E4E | Yes: look through it as usual | ||
| A69D | RET | Anything else: do nothing further here | ||
| Prev: A655 | Up: Map | Next: A69E |