Sherlock: annotated disassembly

Routines

Prev: B568 Up: Map Next: B5B6
B5A4: Next thing or room the indirect-object slot names
Sets bit 1 of $B16E when one is found.
Output
A The next thing or room, $FF if none
F Z when none
$A035 The candidate
$B16E bit 1 set when found
B5A4 LD HL,$B178 The indirect-object slot's words ($B178)
B5A7 CALL $B4A0 Next thing or room they name (B4A0)
B5AA CP $FF Compare A with $FF - $FF: no more
B5AC RET Z If A equals $FF, return
B5AD LD ($A035),A Make it the indirect object ($A035)
B5B0 LD HL,$B16E Point HL at $B16E in "Parser variables" - Mark the slot as having a candidate (bit 1 of $B16E)
B5B3 SET 1,(HL) Set bit 1 of the byte at $B16E in "Parser variables"
B5B5 RET Return to the caller
Prev: B568 Up: Map Next: B5B6