Sherlock: annotated disassembly

Routines

Prev: DFEA Up: Map Next: E003
DFF0: Action record: shared 23 (WEAR (used by the old man's disguise))
Shared action 23: WEAR the old man's disguise: A = $64 (the old man, thing 100) and on to the common tail at E028.
Output
F From $E028
DFF0 DEFB $48,$10,$1C,$E0 Action record header: flags $48; bit 6: pre-check at E01C; byte 1 $10
DFF4 LD A,$64 Load A with $64 - A = $64 and on to E028
DFF6 JR $E028 Jump on to E028
DFF8 LD A,($A036) Read $A036 in "Game variables" into A - The actor must be thing 1, else fail
DFFB CP $01 Compare A with $01
This entry point is used by the routines at DFCA and E003.
DFFD JP NZ,$DC15 If A differs from $01, go back to the routine "Fail: A = 0, HL = 0, Z set" (DC15)
This entry point is used by the routines at DF8B and DFB6.
E000 OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller - Return NZ
E002 RET Return to the caller
Prev: DFEA Up: Map Next: E003