| The Hobbit (v1.0) | Routines |
| Prev: A4F4 | Up: Map | Next: A550 |
|
If the character is in Bilbo's room but Bilbo cannot be seen (his visibility bit is clear), says 'where's the thief?'.
|
||||
| A539 | LD A,($B5E7) | A = the room the character started this turn in | ||
| A53C | LD HL,$B5E6 | Is Bilbo in that same room? | ||
| A53F | CP (HL) | |||
| A540 | RET NZ | No: say nothing | ||
| A541 | LD A,($C012) | Yes - is Bilbo actually visible? | ||
| A544 | BIT 7,A | |||
| A546 | RET NZ | He is: no need to ask | ||
| A547 | CALL $9C99 | Invisible: dry run? Then stop here: it always works | ||
| A54A | LD HL,$AFBD | "where's the thief?" | ||
| A54D | JP $A113 | Say it | ||
| Prev: A4F4 | Up: Map | Next: A550 |