Sherlock: annotated disassembly

Data

Prev: EE1F Up: Map Next: EF9C
EE2B: Plan script: Basil Phipps (actor 6) - the spy with the plans
Entry point: EE2B = phipps (actor 6).
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.
At Old Mill Road (EF26) he waits for 3pm, then starts a countdown of 16 minutes plus a random number (EF34). Each minute he checks whether you are at Old Mill Road (EF39). If you arrive in time, 'AS YOU ENTER HE WHIPS HIS HORSES INTO ACTION AND SPEEDS OFF DOWN THE ROAD.' (EF47, message 7573): he is put in Leatherhead's Main Street, waits for 4pm and 48 minutes more, walks to the station, takes a train to platform four in London, walks five steps south-west to Kings Cross Road, takes a cab to Buckingham Palace Road and walks east twice, to platform one at Victoria (room 30). If you are there (EF83) he runs 9E48 - the last scene; if not, he leaves the game (EF8C).
With Watson and Lestrade beside you: 'Basil Phipps enters. ... As Basil enters he sees you and pulls a gun. With suprising agility Watson pushes you out of the way of Basils first shot allowing Lestrade time to pull his gun and capture the culprits. As incredible as it may seem you have solved this case. You truly deserve the title of worlds greatest detective.' Without Lestrade, or without Watson: '...With his usual skill his first shot disposes of you. Perhaps you should try again.' With you one room away, he walked in and left the game.
The flight from EF4A on is shared with the German agent (EFF6), who waits at Old Mill Road too.
Phipps is in the bedroom (room 35) through the night, in the hall (33) at 10:06, in Camden Street (32) at 10:09 and in his cab (room 1) at 10:15 - the same whether the player is in room 102 or in the street. At 9:50am he shoots whoever is in the bedroom, in disguise or not.
Why Phipps's Wednesday morning differs between logs: at EEE9 his script tests whether you are in Camden Street or Basil's front yard, or the china man is in either. If so he plays the messenger scene (EFAC) and waits 15 minutes before leaving the bedroom; if not he goes at once. With the player indoors he is in Camden Street at 9:55am; with the player in the front yard, as in the winning route, about 10:06-10:10.
EE2B DEFB $59,$04,$2B,$EE AWAIT 4 chief constable straker [busy; fail: wait here]
EE2F DEFB $42,$80,$FB,$00 DO 128 PUT: self, room 0 (off stage) [busy]
EE33 DEFB $12,$88,$17,$FF,$33,$EE DO 136 IS HOUR 23 [fail: wait here]
EE39 DEFB $02,$80,$FB,$3D DO 128 PUT: self, room 61 (basils bedroom)
EE3D DEFB $03,$B3,$EF RUN EFB3
EE40 DEFB $52,$88,$07,$FF,$40,$EE DO 136 IS HOUR 7 [busy; fail: wait here]
EE46 DEFB $03,$C7,$EF RUN EFC7
EE49 DEFB $41,$0A DO 10 DOWN [busy]
EE4B DEFB $42,$87,$13,$FF DO 135 GO THROUGH DOOR: 19 front door, - [busy]
EE4F DEFB $41,$01 DO 1 NORTH [busy]
EE51 DEFB $41,$01 DO 1 NORTH [busy]
EE53 DEFB $41,$01 DO 1 NORTH [busy]
EE55 DEFB $41,$01 DO 1 NORTH [busy]
EE57 DEFB $47,$E1,$EB,$17,$FF RUN EBE1 (23 your armchair, -) [busy]
EE5C DEFB $41,$08 DO 8 SOUTHWEST [busy]
EE5E DEFB $41,$08 DO 8 SOUTHWEST [busy]
EE60 DEFB $41,$08 DO 8 SOUTHWEST [busy]
EE62 DEFB $41,$08 DO 8 SOUTHWEST [busy]
EE64 DEFB $41,$08 DO 8 SOUTHWEST [busy]
EE66 DEFB $47,$A4,$EB,$FF,$20 RUN EBA4 (-, 32 money) [busy]
EE6B DEFB $42,$85,$5B,$FF DO 133 UNLOCK: 91 front door, - [busy]
EE6F DEFB $42,$87,$5B,$FF DO 135 GO THROUGH DOOR: 91 front door, - [busy]
EE73 DEFB $42,$84,$5B,$FF DO 132 LOCK: 91 front door, - [busy]
EE77 DEFB $12,$88,$0D,$FF,$77,$EE DO 136 IS HOUR 13 [fail: wait here]
EE7D DEFB $82,$83,$00,$20,$95,$EE DO 131 IS IN: 0 you, room 32 (camden street) [ok EE95]
EE83 DEFB $82,$83,$00,$66,$95,$EE DO 131 IS IN: 0 you, room 102 (basils front yard) [ok EE95]
EE89 DEFB $82,$83,$01,$66,$95,$EE DO 131 IS IN: 1 china man, room 102 (basils front yard) [ok EE95]
EE8F DEFB $12,$83,$01,$20,$98,$EE DO 131 IS IN: 1 china man, room 32 (camden street) [fail EE98]
EE95 DEFB $03,$9C,$EF RUN EF9C
EE98 DEFB $12,$88,$16,$FF,$98,$EE DO 136 IS HOUR 22 [fail: wait here]
EE9E DEFB $02,$80,$FB,$23 DO 128 PUT: self, room 35 (basils bedroom)
EEA2 DEFB $02,$85,$4F,$FF DO 133 UNLOCK: 79 window, -
EEA6 DEFB $02,$24,$4F,$FF DO 36 OPEN: 79 window, -
EEAA DEFB $07,$2F,$E5,$37,$14 RUN E52F START COUNTDOWN of (dobj) plus a random number up to (iobj) (55, 20)
EEAF DEFB $82,$81,$FB,$00,$96,$EF DO 129 IS WITH: self, 0 you [ok EF96]
EEB5 DEFB $0F PASS
EEB6 DEFB $83,$7A,$E5,$AF,$EE RUN E57A TICK the countdown (fails, and deletes it, when it runs out) [ok EEAF]
EEBB DEFB $03,$B3,$EF RUN EFB3
EEBE DEFB $47,$BE,$DD,$28,$FF RUN DDBE WAIT (dobj) minutes (40, -) [busy]
EEC3 DEFB $03,$C7,$EF RUN EFC7
EEC6 DEFB $12,$83,$53,$26,$DA,$EE DO 131 IS IN: 83 ripped coded baker note, room 38 (basils library) [fail EEDA]
EECC DEFB $12,$83,$51,$27,$DA,$EE DO 131 IS IN: 81 torn coded ?0f8 note, room 39 (basils yard) [fail EEDA]
EED2 DEFB $02,$80,$51,$00 DO 128 PUT: 81 torn coded ?0f8 note, room 0 (off stage)
EED6 DEFB $02,$80,$53,$00 DO 128 PUT: 83 ripped coded baker note, room 0 (off stage)
EEDA DEFB $0F PASS
EEDB DEFB $03,$C7,$EF RUN EFC7
EEDE DEFB $12,$88,$09,$FF,$DA,$EE DO 136 IS HOUR 9 [fail EEDA]
EEE4 DEFB $07,$BE,$DD,$32,$FF RUN DDBE WAIT (dobj) minutes (50, -)
EEE9 DEFB $82,$83,$00,$20,$01,$EF DO 131 IS IN: 0 you, room 32 (camden street) [ok EF01]
EEEF DEFB $82,$83,$00,$66,$01,$EF DO 131 IS IN: 0 you, room 102 (basils front yard) [ok EF01]
EEF5 DEFB $82,$83,$01,$66,$01,$EF DO 131 IS IN: 1 china man, room 102 (basils front yard) [ok EF01]
EEFB DEFB $12,$83,$01,$20,$09,$EF DO 131 IS IN: 1 china man, room 32 (camden street) [fail EF09]
EF01 DEFB $03,$AC,$EF RUN EFAC
EF04 DEFB $07,$BE,$DD,$0F,$FF RUN DDBE WAIT (dobj) minutes (15, -)
EF09 DEFB $03,$C7,$EF RUN EFC7
EF0C DEFB $47,$F6,$F1,$55,$FF RUN F1F6 (85 burning note, -) [busy]
EF11 DEFB $02,$80,$FB,$21 DO 128 PUT: self, room 33 (entrance hall)
EF15 DEFB $42,$85,$5B,$FF DO 133 UNLOCK: 91 front door, - [busy]
EF19 DEFB $42,$87,$5B,$FF DO 135 GO THROUGH DOOR: 91 front door, - [busy]
EF1D DEFB $42,$84,$5B,$FF DO 132 LOCK: 91 front door, - [busy]
EF21 DEFB $43,$72,$EB RUN EB72 [busy]
EF24 DEFB $41,$02 DO 2 SOUTH [busy]
EF26 DEFB $41,$03 DO 3 EAST [busy]
EF28 DEFB $08,$68 SIGNAL 104 german agent
EF2A DEFB $42,$80,$FB,$67 DO 128 PUT: self, room 103 (old mill road) [busy]
EF2E DEFB $12,$88,$0F,$FF,$2E,$EF DO 136 IS HOUR 15 [fail: wait here]
EF34 DEFB $07,$2F,$E5,$10,$FF RUN E52F START COUNTDOWN of (dobj) plus a random number up to (iobj) (16, -)
EF39 DEFB $82,$83,$00,$67,$47,$EF DO 131 IS IN: 0 you, room 103 (old mill road) [ok EF47]
EF3F DEFB $0F PASS
EF40 DEFB $93,$7A,$E5,$39,$EF,$8C,$EF RUN E57A TICK the countdown (fails, and deletes it, when it runs out) [ok EF39; fail EF8C]
EF47 DEFB $06,$73,$75 PRINT message 7573: "AS YOU ENTER YOU WHIPS HIS HORSES INTO ACTION AND SPEEDS OFF DOWN T..."
EF4A DEFB $02,$80,$FB,$32 DO 128 PUT: self, room 50 (main street)
EF4E DEFB $12,$88,$10,$FF,$4E,$EF DO 136 IS HOUR 16 [fail: wait here]
EF54 DEFB $07,$BE,$DD,$30,$FF RUN DDBE WAIT (dobj) minutes (48, -)
EF59 DEFB $01,$01 DO 1 NORTH
EF5B DEFB $01,$01 DO 1 NORTH
EF5D DEFB $01,$01 DO 1 NORTH
EF5F DEFB $11,$0C,$5F,$EF DO 12 CLIMB INTO [fail: wait here]
EF63 DEFB $12,$83,$FB,$17,$63,$EF DO 131 IS IN: self, room 23 (platform four) [fail: wait here]
EF69 DEFB $01,$0D DO 13 CLIMB OUT OF
EF6B DEFB $01,$08 DO 8 SOUTHWEST
EF6D DEFB $01,$08 DO 8 SOUTHWEST
EF6F DEFB $01,$08 DO 8 SOUTHWEST
EF71 DEFB $01,$08 DO 8 SOUTHWEST
EF73 DEFB $01,$08 DO 8 SOUTHWEST
EF75 DEFB $07,$BE,$DD,$05,$FF RUN DDBE WAIT (dobj) minutes (5, -)
EF7A DEFB $07,$A4,$EB,$FF,$1C RUN EBA4 (-, 28 ?960 money)
EF7F DEFB $01,$03 DO 3 EAST
EF81 DEFB $01,$03 DO 3 EAST
EF83 DEFB $12,$81,$FB,$00,$8C,$EF DO 129 IS WITH: self, 0 you [fail EF8C]
EF89 DEFB $03,$48,$9E RUN 9E48
EF8C DEFB $02,$80,$FB,$00 DO 128 PUT: self, room 0 (off stage)
EF90 DEFB $03,$A8,$E5 RUN E5A8 IDLE (no checks; takes a minute)
EF93 DEFB $0E,$90,$EF GOTO EF90
EF96 DEFB $03,$88,$E5 RUN E588 CANCEL the countdown
EF99 DEFB $03,$CA,$DF RUN DFCA
Prev: EE1F Up: Map Next: EF9C