Sherlock: annotated disassembly

Routines

Prev: E17B Up: Map Next: E1A3
E188: Action record: Mrs Jones is asked what happened or about her alibi (RUN at $E17D)
Addresses named in the title: E17D.
If the topic (indirect object) is thing 16 (WHAT HAPPENED), 67 (BLOODSTAINED CLOTHES) or 17 (YOUR ALIBI), bit 1 of the statement at 9993 is set; Mrs Jones (Tricia Fender in disguise) has then been asked.
Input
$A035 The topic
Output
The statement at $9993 marked when the topic is the right one
E188 DEFB $0D,$07 Action record header: flags $0D; byte 1 $07
E18A LD A,($A035) Read $A035 in "Game variables" into A - The indirect object ($A035): thing 16 (WHAT HAPPENED), 67 (BLOODSTAINED CLOTHES) or 17 (YOUR ALIBI)?
E18D CP $10 Compare A with $10
E18F JR Z,$E199 If A equals $10, skip ahead to E199
E191 CP $43 Compare A with $43
E193 JR Z,$E199 If A equals $43, skip ahead to E199
E195 CP $11 Compare A with $11
E197 JR NZ,$E1D3 No: skip to E1D3
E199 LD IX,$9993 Point IX at 9993 in "The case: statements about the crime, and..." - Yes: set bit 1 of the empty statement at 9993 - set once Mrs Jones (Tricia Fender in disguise) has been asked what happened or about her alibi
E19D SET 1,(IX+$03) Set bit 1 of byte +3 of the record at IX
E1A1 JR $E1D3 Jump on to E1D3
Prev: E17B Up: Map Next: E1A3