Sherlock: annotated disassembly

Data

Prev: ED17 Up: Map Next: ED39
ED28: Sub-script: RUN at $EDEB; RUN at $EE0E; internal verb 135 (sub-script: OPEN, GO THROUGH and CLOSE a door)
Addresses named in the title: EDEB, EE0E.
Entry points: ED2A = body of record ED28.
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.
ED28 DEFB $88,$00 Action record header: flags $88; bit 7: checks only; byte 1 $00 - checks-only: the script follows
ED2A DEFB $42,$24,$FD,$FF DO 36 OPEN: plan dobj, - [busy]
ED2E DEFB $52,$1C,$FD,$FF,$2A,$ED DO 28 GO THROUGH: plan dobj, - [busy; fail ED2A]
ED34 DEFB $42,$0E,$FD,$FF DO 14 CLOSE: plan dobj, - [busy]
ED38 DEFB $0B RETURN OK
Prev: ED17 Up: Map Next: ED39