Sherlock: annotated disassembly

Routines

Prev: 9DFF Up: Map Next: 9E6A
9E48: The last scene: Basil arrives at Victoria (the winning ending)
Run by Phipps's script (EF89) when he walks onto platform one at Victoria and finds you there. If Watson (3) and Lestrade (2) are both in your room (9E60), ends the game with 6AF3: '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.' - the only winning ending. If either is missing, with 6B79: 'AS BASIL ENTERS HE SEES YOU AND PULLS A GUN. WITH HIS USUAL SKILL HIS FIRST SHOT DISPOSES OF YOU. PERHAPS YOU SHOULD TRY AGAIN.'
With Lestrade left on the platform the same room and minute give 'With his usual skill his first shot disposes of you.' instead (endings/end5_victoria_without_lestrade).
Output
F The game ends through $9E74
9E48 DEFB $00,$00 Action record header: flags $00; byte 1 $00
9E4A LD HL,$6B79 Point HL at the message "AS BASIL ENTERS HE SEES YOU AND PULLS A GUN.... (6B79)
9E4D LD A,$03 Load A with $03
9E4F CALL $9E60 Call 9E60 (inside "The last scene: Basil arrives at Victoria...")
9E52 JR NZ,$9E74 If the zero flag is clear, skip ahead to the routine "End the game with the message in HL" (9E74)
9E54 LD A,$02 Load A with $02
9E56 CALL $9E60 Call 9E60 (inside "The last scene: Basil arrives at Victoria...")
9E59 JR NZ,$9E74 If the zero flag is clear, skip ahead to the routine "End the game with the message in HL" (9E74)
9E5B LD HL,$6AF3 Point HL at the message "AS BASIL ENTERS HE SEES YOU AND PULLS A GUN.... (6AF3)
9E5E JR $9E74 Skip ahead to the routine "End the game with the message in HL" (9E74)
9E60 CALL $D237 Call the routine "Resolve an id (in A) to its full entity record" (D237)
9E63 LD A,($A009) Read the room the player is in, which decides what is shown ($A009) into A
9E66 CP (IX+$0F) Compare A with byte +15 of the record at IX
9E69 RET Return to the caller
Prev: 9DFF Up: Map Next: 9E6A