Sherlock: annotated disassembly

Data

Prev: DD35 Up: Map Next: DD61
DD52: Sub-script: RUN at $E460; RUN at $E7BE; default for verb 18 (ENTER); default for verb 27 (GO INTO)
Addresses named in the title: E460, E7BE.
Entry points: DD54 = body of record DD52.
Each sub-block is one instruction. Room and object numbers are as the game uses them (the reference pages list both).
In an instruction, 'plan dobj' and 'plan iobj' are not fixed objects: they mean the direct and indirect object currently held in the actor's plan registers (bytes +4 and +5 of its actor record), so the same step works on whatever the actor is dealing with - for the player, the objects of the command just typed. 'plan verb' is the verb register (+3), 'self' is the acting character, and '-' means none.
DD52 DEFB $A4,$00 Action record header: flags $A4; bit 5: test D078 first; bit 7: checks only; byte 1 $00 - checks-only: the script follows
DD54 DEFB $17,$61,$DD,$FD,$FF,$60,$DD RUN DD61 (plan dobj, -) [fail DD60]
DD5B DEFB $11,$FD,$60,$DD DO plan dobj [fail DD60]
DD5F DEFB $0B RETURN OK
DD60 DEFB $0A RETURN FAIL
Prev: DD35 Up: Map Next: DD61