Sherlock: annotated disassembly

Routines

Prev: 9C60 Up: Map Next: 9C77
9C6A: Look up the actor's after-turn routine
Searches the table at 9C85 (D34E) for the actor in $A036. Returns Z if there is none (the search's $FF end marker), NZ if found.
Input
$A036 The actor
Output
F Z if the actor has no after-turn routine; NZ if it has
IX The actor's entry in the table at $9C85
9C6A LD A,($A036) Read $A036 in "Game variables" into A - The actor ($A036) looked up in the list at 9C85 (D34E)
9C6D LD IX,$9C85 Point IX at "After-turn routines for nine characters" (9C85)
9C71 CALL $D34E Call the routine "Find a 3-byte record by id, in a sentinel-terminated..." (D34E)
9C74 CP $FF Compare A with $FF - $FF = not there
9C76 RET Return to the caller
Prev: 9C60 Up: Map Next: 9C77