Sherlock: annotated disassembly

Data

Prev: DF8B Up: Map Next: DFB6
DFA7: Sub-script: shared action 21, OPEN a wall safe
DFB6 (the safe's own check), then the ordinary OPEN (DE9D).
Entry points: DFAB = body of record DFA7.
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.
DFA7 DEFB $C8,$00,$1C,$E0 Action record header: flags $C8; bit 6: pre-check at E01C; bit 7: checks only; byte 1 $00 - checks-only: the script follows
DFAB DEFB $07,$B6,$DF,$FD,$FF RUN DFB6 (plan dobj, -)
DFB0 DEFB $07,$9D,$DE,$FD,$FF RUN DE9D (plan dobj, -)
DFB5 DEFB $0B RETURN OK
Prev: DF8B Up: Map Next: DFB6