Sherlock: annotated disassembly

Routines

Prev: DC57 Up: Map Next: DC8D
DC7B: Action record: default for verb 34 (LOOK)
LOOK: a new line, then the full description of the room the player is in. It runs for the player and for the china man (the disguise), and does nothing for other actors (the pre-check at DC6C passes only actors 0, 1 and $64 - you, the china man and the old man).
Output
F NZ; the room described in full ($D102) when the actor is accepted by $DC6C
DC7B DEFB $20,$10 Action record header: flags $20; bit 5: test D078 first; byte 1 $10
DC7D CALL $DC6C Call DC6C (inside "Action record: default for verb 28 (GO...") - Only the actors DC6C accepts (Z); anyone else passes
DC80 RET NZ If the zero flag is clear, return
DC81 CALL $A2A2 Newline
DC84 LD A,($A00A) Read the current actor's room (A00A) into A - The room the player is in (A00A): describe it in full (D102)
DC87 CALL $D102 Call the routine "Describe room A in full (the first visit)" (D102)
DC8A OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed
DC8C RET Return to the caller
Prev: DC57 Up: Map Next: DC8D