Sherlock: annotated disassembly

Routines

Prev: F062 Up: Map Next: F110
F103: The Major's confession: establish 'MAJOR VISITED OPIUM DEN'
Run by the Major's script (F0E6) right after he tells the player 'WELL HOLMES YOU HAVE FOUND OUT MY SHAMEFUL SECRET, I AM ADDICTED TO...' - which he only does when the player is with him in the opium den late at night (his script: after 11pm, by chance, to room 40 and through the heavy oak door). Marks the empty evidence record at 996F done, which is the only way to prove MAJOR PERCIVAL FFOULKES VISITED OPIUM DEN and so MAJOR PERCIVAL FFOULKES IS INNOCENT. With bit 1 of $9972 set first - as F103 does when the Major confesses - the opium-den statement is proven, the waiting innocence statement is proven with it ($9968 $A5 -> $A6), 9A3D sets $9E88 and Lestrade says 'Very good Holmes, I shall return to Leather head tomorrow to have another look around.'
Output
F NZ; the statement at $996F is established
F103 DEFB $00,$00 Action record header: flags $00; byte 1 $00
F105 LD IX,$996F Point IX at 996F in "The case: statements about the crime, and..." - Case record 996F (Major Ffoulkes visited the opium den): bit 1 of +3 set - the statement is established
F109 SET 1,(IX+$03) Set bit 1 of byte +3 of the record at IX
F10D OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed
F10F RET Return to the caller
Prev: F062 Up: Map Next: F110