Sherlock: annotated disassembly

Data

Prev: F278 Up: Map Next: F2A5
F28D: Plan script: steam train (actor 43) - the Leatherhead line, first stop Leatherhead
Entry point: F28D = steam train (actor 43).
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.
Each DO 140 is internal verb 140: put the train in room n (E4C9) and wait m minutes. Rooms 2, 3 and 4 are 'between stations' - also the rooms a passenger is in while riding. The two Leatherhead trains run the same three-hour circuit half a cycle apart: 60 minutes on the way, platform four at Kings Cross (room 23) for 10, 5 minutes, platform three (22) for 10, 5 minutes, 60 minutes on the way, Leatherhead platform one (54) for 10, 5 minutes, platform two (55) for 10, 5 minutes. So a train leaves each platform every 90 minutes and the run takes about 65. This is what decides the endgame chase: Phipps catches the 4:55, and the next is 90 minutes behind him (see E7E7).
F28D DEFB $07,$BE,$DD,$3C,$FF RUN DDBE WAIT (dobj) minutes (60, -)
F292 DEFB $02,$8C,$36,$0A DO 140 $E4C9 THEN WAIT: 54 wooden door, 10
F296 DEFB $02,$8C,$04,$05 DO 140 $E4C9 THEN WAIT: 4 chief constable straker, 5
F29A DEFB $02,$8C,$37,$0A DO 140 $E4C9 THEN WAIT: 55 thick heavy door, 10
F29E DEFB $02,$8C,$03,$05 DO 140 $E4C9 THEN WAIT: 3 watson, 5
F2A2 DEFB $0E,$78,$F2 GOTO F278
Prev: F278 Up: Map Next: F2A5