Sherlock: annotated disassembly

Routines

Prev: BE91 Up: Map Next: BF1C
BF08: Check every piece of evidence in the group after IX (Z if one fails)
Used by the routines at BCC9 and BE91.
Input
IX A case record
Output
F Z if a piece of evidence fails; NZ if all are satisfied
IX Moved on
BF08 CALL $BE5A Step over the first case record (BE5A)
BF0B BIT 3,(IX+$03) Test bit 3 of byte +3 of the record at IX - Bit 3 (the last of the group) noted in the flags
BF0F PUSH AF Save AF on the stack
BF10 CALL $BE91 Is this record's evidence satisfied? (BE91)
BF13 JR NZ,$BF18 If the zero flag is clear, skip ahead to BF18 - Not: Z result, stop
BF15 POP AF Restore AF from the stack
BF16 XOR A Set A to zero, which sets the zero flag for the caller
BF17 RET Return to the caller
BF18 POP AF Restore AF from the stack - Satisfied: go on to the next record unless that was the last
BF19 JR Z,$BF0B If the zero flag is set, go back to BF0B
BF1B RET Return to the caller
Prev: BE91 Up: Map Next: BF1C