![]() |
Routines |
| Prev: 939E | Up: Map | Next: 9404 |
|
Used by the routine at ELROND_READS_MAP.
An object's own description, bytes 14 and 15 of its record, if it has one; otherwise "you see" and its name. Some objects carry their own EXAMINE instead -- the curious map's is ELROND_READS_MAP, the magic door's MAGIC_DOOR_EXAMINED.
|
||||
| DO_EXAMINE | 93DA | CALL FOR_REAL | The test ends here | |
| 93DD | LD A,(TARGET) | Its own description, if it has one | ||
| 93E0 | CALL GET_OBJECT | |||
| 93E3 | LD L,(IX+$0E) | |||
| 93E6 | LD H,(IX+$0F) | |||
| 93E9 | LD A,H | |||
| 93EA | OR L | |||
| 93EB | JP NZ,RUN_MESSAGE_HL | |||
| 93EE | LD HL,MSG_SEE | Otherwise "you see" and its name | ||
| 93F1 | CALL RUN_MESSAGE_HL | |||
| 93F4 | PUSH IX | |||
| 93F6 | POP IY | |||
| 93F8 | CALL PRINT_RECORD_NAME | |||
| 93FB | LD A,$2E | |||
| 93FD | CALL PRINT_CHAR | |||
| 9400 | CALL NEW_LINE | |||
| 9403 | RET | |||
| Prev: 939E | Up: Map | Next: 9404 |