Sherlock: annotated disassembly

Routines

Prev: DFB6 Up: Map Next: DFEA
DFCA: Action record: Basil shoots you (RUN at $EF99, and from $DFB6)
Addresses named in the title: EF99, DFB6.
Game over. If Basil (thing 6, Phipps) is not in the player's room it prints 'Basil enters and says " Holmes, your interference is becoming annoying. " ...' (759C), if he is it prints the version without 'enters' (75D2), then ends the game through 9E74. Reached from the wall-safe script on Monday and from Phipps's wake-up routine EFC7 when you are inside his house at that time. The three instructions at DFE3-DFE8 belong to the pre-check of the next record (DFEA), not to this one.
Output
The game ends through $9E74 with Basil's message
DFCA DEFB $00,$00 Action record header: flags $00; byte 1 $00
This entry point is used by the routines at DFB6 and EFC7.
DFCC LD HL,$759C Point HL at the message "BASIL ENTERS AND SAYS" HOLMES, YOUR INTERFERENCE... (759C)
DFCF LD A,$06 Load A with $06
DFD1 CALL $D237 Call the routine "Resolve an id (in A) to its full entity record" (D237)
DFD4 LD A,($A009) Read the room the player is in, which decides what is shown ($A009) into A
DFD7 CP (IX+$0F) Compare A with byte +15 of the record at IX
DFDA JP NZ,$9E74 If A differs from byte +15 of the record at IX, go back to the routine "End the game with the message in HL" (9E74)
DFDD LD HL,$75D2 Point HL at the message "BASIL SAYS" HOLMES, YOUR INTERFERENCE IS... (75D2)
DFE0 JP $9E74 Go back to the routine "End the game with the message in HL" (9E74)
DFE3 LD A,($A036) Read $A036 in "Game variables" into A
DFE6 CP $64 Compare A with $64
DFE8 JR $DFFD Skip ahead to DFFD
Prev: DFB6 Up: Map Next: DFEA