Sherlock: annotated disassembly

Data

Prev: EDDD Up: Map Next: EDF8
EDE9: Sub-script: internal verb 138 (sub-script: go through a door (135), then CHANCE (indirect object))
Entry points: EDEB = body of record EDE9.
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.
EDE9 DEFB $88,$07 Action record header: flags $88; bit 7: checks only; byte 1 $07 - checks-only: the script follows
EDEB DEFB $07,$28,$ED,$FD,$FF RUN ED28 (plan dobj, -)
EDF0 DEFB $57,$98,$F1,$FC,$FF,$F0,$ED RUN F198 CHANCE: succeed if a random 1-99 is at most (dobj) (plan iobj, -) [busy; fail: wait here]
EDF7 DEFB $0B RETURN OK
Prev: EDDD Up: Map Next: EDF8