Sherlock: annotated disassembly

Routines

Prev: CC0E Up: Map Next: CC37
CC29: Set up the current actor: its record and room
$A017 = the record of the actor in $A036 and A00A = its room (D495).
Input
$A036 The actor
Output
$A017 The actor's record
$A00A The actor's room
IX The record
CC29 LD A,($A036) Read $A036 in "Game variables" into A - The current actor ($A036): its thing record (D495)
CC2C CALL $D495 Call the routine "GET-ACTOR-ROOM: what room is actor A currently in?" (D495)
CC2F LD ($A017),IX Store IX in $A017 in "Game variables" - Keep the record at $A017 and the room (A) at A00A
CC33 LD ($A00A),A Store A in the current actor's room (A00A)
CC36 RET Return to the caller
Prev: CC0E Up: Map Next: CC37