Sherlock: annotated disassembly

Routines

Prev: 9C6A Up: Map Next: 9C85
9C77: Run the current actor's own after-turn routine
After every turn (from the main loop at A0CC), looks the actor up in the table at 9C85 (9C6A, through D34E) and jumps to its routine. Nine characters have one.
Input
$A036 The actor
Output
F Unchanged from the actor's own routine, or the caller continues if there is none
9C77 CALL $9C6A Has this actor a routine?
9C7A RET Z No
9C7B LD L,(IX+$01) Read byte +1 of the record at IX into L - Its address...
9C7E LD H,(IX+$02) Read byte +2 of the record at IX into H
9C81 LD A,L Copy L into A
9C82 OR H Set in A the bits that are set in H
9C83 RET Z If the result is zero, return
9C84 JP (HL) ...jump to it
Prev: 9C6A Up: Map Next: 9C85