Sherlock: annotated disassembly

Data

Prev: E432 Up: Map Next: E488
E452: Sub-script: default for verb 21 (FOLLOW); default for verb 22 (COME WITH)
Entry points: E456 = body of record E452.
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.
E452 DEFB $EC,$00,$4C,$E4 Action record header: flags $EC; bit 5: test D078 first; bit 6: pre-check at E44C; bit 7: checks only; byte 1 $00 - checks-only: the script follows
E456 DEFB $07,$2F,$E5,$0A,$FF RUN E52F START COUNTDOWN of (dobj) plus a random number up to (iobj) (10, -)
E45B DEFB $47,$88,$E4,$FD,$FF RUN E488 (plan dobj, -) [busy]
E460 DEFB $57,$52,$DD,$FA,$FF,$6B,$E4 RUN DD52 ENTER / GO INTO (dobj) (plan verb, -) [busy; fail E46B]
E467 DEFB $43,$88,$E5 RUN E588 CANCEL the countdown [busy]
E46A DEFB $0B RETURN OK
E46B DEFB $C7,$FD,$E5,$FD,$FF,$81,$E4 RUN E5FD (plan dobj, -) [busy; ok E481]
E472 DEFB $C1,$0D,$81,$E4 DO 13 CLIMB OUT OF [busy; ok E481]
E476 DEFB $57,$84,$DD,$FD,$FF,$81,$E4 RUN DD84 (plan dobj, -) [busy; fail E481]
E47D DEFB $42,$0C,$FA,$FF DO 12 CLIMB INTO: plan verb, - [busy]
E481 DEFB $0F PASS
E482 DEFB $C3,$7A,$E5,$5B,$E4 RUN E57A TICK the countdown (fails, and deletes it, when it runs out) [busy; ok E45B]
E487 DEFB $0A RETURN FAIL
Prev: E432 Up: Map Next: E488