Sherlock: annotated disassembly

Routines

Prev: B86A Up: Map Next: B91F
B90E: Find the current actor's waiting order or remark
B91F, then remember the node at B866 and point IY at its words (+5/+6).
Input
$A036 The actor
Output
IX The waiting node, kept at $B866
IY The sentence node it points to
F Z if found
B90E CALL $B91F Find the current actor's waiting order or remark (B91F)
B911 LD ($B866),IX Keep it (B866)
B915 LD E,(IX+$05) Read byte +5 of the record at IX into E - IY = the sentence node it points to (+5/+6)
B918 LD D,(IX+$06) Read byte +6 of the record at IX into D
B91B PUSH DE Save DE on the stack
B91C POP IY Restore IY from the stack
B91E RET Return to the caller
Prev: B86A Up: Map Next: B91F