| The Hobbit (v1.0) | Routines |
| Prev: 9308 | Up: Map | Next: 936E |
|
If the object has a description message, it is printed. The address of that message is stored in the object's fourth word slot (bytes 14 and 15 of its record), which is not needed for words when the object has only one or two adjectives. Otherwise the game just says 'you see the X.'
|
||||
| 9344 | CALL $9C99 | Dry run? Then stop here: EXAMINE always works | ||
| 9347 | LD A,($B5D9) | A = the target | ||
| 934A | CALL $9B25 | IX = its own record | ||
| 934D | LD L,(IX+$0E) | HL = its own description, if it has one written specially for it | ||
| 9350 | LD H,(IX+$0F) | |||
| 9353 | LD A,H | Is there actually a description there? | ||
| 9354 | OR L | |||
| 9355 | JP NZ,$72D4 | Yes: print it, and that is the whole answer | ||
| 9358 | LD HL,$AEF2 | No description: "you see" | ||
| 935B | CALL $72D4 | |||
| 935E | PUSH IX | IY = the target's own record | ||
| 9360 | POP IY | |||
| 9362 | CALL $9E10 | Print its name | ||
| 9365 | LD A,$2E | A full stop... | ||
| 9367 | CALL $7580 | |||
| 936A | CALL $7578 | ...then a new line | ||
| 936D | RET | |||
| Prev: 9308 | Up: Map | Next: 936E |