Prev: 8C23 Up: Map Next: 8C9B
8C4B: LOOK
Inside something -- the barrel, say -- the actor is told what it is in and what else is in there with it: "you are in the barrel." and "you see :". Otherwise the whole location is described again, as on a first visit.
DO_LOOK 8C4B CALL FOR_REAL The test ends here
8C4E LD IX,(ACTOR) Held by nothing: describe the place
8C52 LD A,(IX+$01)
8C55 CP $FF
8C57 JR Z,DO_LOOK_0
8C59 LD HL,$0080 "you are"...
8C5C LD (MSG_IN_SLOT),HL
8C5F LD HL,MSG_IN
8C62 CALL RUN_MESSAGE_HL
8C65 PUSH IX ...in the ..., and its name
8C67 LD A,(IX+$01)
8C6A CALL GET_OBJECT
8C6D CALL PLACED_WORD
8C70 LD E,(IX+$08)
8C73 LD A,(IX+$09)
8C76 AND $0F
8C78 LD D,A
8C79 CALL PRINT_WORD_DE
8C7C LD A,$2E A full stop and a new line
8C7E CALL PRINT_CHAR
8C81 CALL NEW_LINE
8C84 LD HL,MSG_SEE_B "you see :" and what else it holds
8C87 CALL RUN_MESSAGE_HL
8C8A POP IX
8C8C LD A,(IX+$01)
8C8F LD B,(IX+$10)
8C92 JP LIST_HERE
DO_LOOK_0 8C95 LD A,(IX+$10) Describe the location
8C98 JP DESCRIBE_ROOM
Prev: 8C23 Up: Map Next: 8C9B