Sherlock: annotated disassembly

Data

Prev: F017 Up: Map Next: F103
F062: Plan script: major percival ffoulkes (actor 7)
Entry point: F062 = major percival ffoulkes (actor 7).
Each sub-block is one instruction. Split off from the block before, which it merely follows in memory.
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.
F062 DEFB $59,$02,$62,$F0 AWAIT 2 inspector lestrade [busy; fail: wait here]
F066 DEFB $42,$80,$FB,$5C DO 128 PUT: self, room 92 (jones front gate) [busy]
F06A DEFB $45,$0B,$20,$6D SAY TO 11 local police man message 6D20: "PLEASE LET ME PAST OFFICER, I MUST SEE MRS JONES." [busy]
F06E DEFB $0F PASS
F06F DEFB $59,$02,$6A,$F0 AWAIT 2 inspector lestrade [busy; fail F06A]
F073 DEFB $45,$02,$2E,$6D SAY TO 2 inspector lestrade message 6D2E: "INSPECTOR I AM YOU A VERY CLOSE AQUAINTANCE OF MRS JONES AND I DEMA..." [busy]
F077 DEFB $48,$02 SIGNAL 2 inspector lestrade [busy]
F079 DEFB $42,$86,$02,$5E DO 134 FOLLOW UNTIL IN: 2 inspector lestrade, room 94 (library) [busy]
F07D DEFB $46,$B9,$6C PRINT message 6CB9: "UPON SEEING THE BODY MAJOR FFOULKES TURNS DEATHLY PALE, THEN, RECOV..." [busy]
F080 DEFB $47,$2F,$E5,$14,$05 RUN E52F START COUNTDOWN of (dobj) plus a random number up to (iobj) (20, 5) [busy]
F085 DEFB $43,$A8,$E5 RUN E5A8 IDLE (no checks; takes a minute) [busy]
F088 DEFB $C3,$7A,$E5,$85,$F0 RUN E57A TICK the countdown (fails, and deletes it, when it runs out) [busy; ok F085]
F08D DEFB $42,$87,$45,$FF DO 135 GO THROUGH DOOR: 69 sittingroom door, - [busy]
F091 DEFB $42,$87,$13,$FF DO 135 GO THROUGH DOOR: 19 front door, - [busy]
F095 DEFB $41,$01 DO 1 NORTH [busy]
F097 DEFB $43,$A8,$F1 RUN F1A8 [busy]
F09A DEFB $41,$04 DO 4 WEST [busy]
F09C DEFB $41,$02 DO 2 SOUTH [busy]
F09E DEFB $41,$02 DO 2 SOUTH [busy]
F0A0 DEFB $42,$80,$FB,$00 DO 128 PUT: self, room 0 (off stage) [busy]
F0A4 DEFB $12,$88,$17,$FF,$A4,$F0 DO 136 IS HOUR 23 [fail: wait here]
F0AA DEFB $17,$98,$F1,$14,$FF,$AA,$F0 RUN F198 CHANCE: succeed if a random 1-99 is at most (dobj) (20, -) [fail: wait here]
F0B1 DEFB $02,$80,$FB,$28 DO 128 PUT: self, room 40 (sidmouth street)
F0B5 DEFB $42,$87,$30,$FF DO 135 GO THROUGH DOOR: 48 heavy oak door, - [busy]
F0B9 DEFB $41,$09 DO 9 UP [busy]
F0BB DEFB $42,$24,$30,$FF DO 36 OPEN: 48 heavy oak door, - [busy]
F0BF DEFB $41,$05 DO 5 NORTHEAST [busy]
F0C1 DEFB $41,$08 DO 8 SOUTHWEST [busy]
F0C3 DEFB $41,$0A DO 10 DOWN [busy]
F0C5 DEFB $42,$87,$30,$FF DO 135 GO THROUGH DOOR: 48 heavy oak door, - [busy]
F0C9 DEFB $47,$A4,$EB,$FF,$0C RUN EBA4 (-, 12 local police man) [busy]
F0CE DEFB $41,$01 DO 1 NORTH [busy]
F0D0 DEFB $08,$02 SIGNAL 2 inspector lestrade
F0D2 DEFB $0F PASS
F0D3 DEFB $82,$81,$00,$FB,$E2,$F0 DO 129 IS WITH: 0 you, self [ok F0E2]
F0D9 DEFB $52,$88,$01,$FF,$D2,$F0 DO 136 IS HOUR 1 [busy; fail F0D2]
F0DF DEFB $0E,$EE,$F0 GOTO F0EE
F0E2 DEFB $45,$00,$78,$6C SAY TO 0 you message 6C78: "WELL HOLMES YOU HAVE FOUND OUT MY SHAMEFUL SECRET, I AM ADDICTED TO..." [busy]
F0E6 DEFB $43,$03,$F1 RUN F103 [busy]
F0E9 DEFB $07,$BE,$DD,$04,$FF RUN DDBE WAIT (dobj) minutes (4, -)
F0EE DEFB $17,$98,$F1,$14,$FF,$EE,$F0 RUN F198 CHANCE: succeed if a random 1-99 is at most (dobj) (20, -) [fail: wait here]
F0F5 DEFB $01,$02 DO 2 SOUTH
F0F7 DEFB $59,$02,$F7,$F0 AWAIT 2 inspector lestrade [busy; fail: wait here]
F0FB DEFB $42,$80,$FB,$00 DO 128 PUT: self, room 0 (off stage) [busy]
F0FF DEFB $0F PASS
F100 DEFB $0E,$FF,$F0 GOTO F0FF
Prev: F017 Up: Map Next: F103