Sherlock: annotated disassembly

Routines

Prev: DFA7 Up: Map Next: DFCA
DFB6: Action record: opening the wall safe on Monday (RUN at $DFAB)
Addresses named in the title: DFAB.
Part of the shared OPEN WALL SAFE script at DFAB. If the direct object is thing $59 (the wall safe) and the day is Monday, control passes to DFCC and Basil shoots you. Any other day it just succeeds.
Input
$A034 The direct object
Output
Continues at $E000, or at $DFCC on Monday for the wall safe
DFB6 DEFB $07,$F0 Action record header: flags $07; byte 1 $F0
DFB8 LD A,($A034) Read $A034 in "Game variables" into A - The direct object ($A034) is thing $59?
DFBB CP $59 Compare A with $59
DFBD JP NZ,$E000 No: E000
DFC0 LD A,($9FE1) Read the day (9FE1) into A - And the day is Monday (0)?
DFC3 CP $00 Compare A with $00
DFC5 JP NZ,$E000 No: E000
DFC8 JR $DFCC Yes: carry on at DFCC
Prev: DFA7 Up: Map Next: DFCA