Sherlock: annotated disassembly

Routines

Prev: EFAC Up: Map Next: EFC7
EFB3: Action record: Phipps goes to sleep (RUN at $EE3D, $EEBB)
Addresses named in the title: EE3D, EEBB.
Sets the actor's state word to SLEEPING ($07F0), the high nibble of +8 to 1, and clears bit 6 of +5 (not a person any more), through F1C1.
Input
$A036 The actor
Output
F NZ; the actor asleep, no longer a person to talk to
EFB3 DEFB $00,$00 Action record header: flags $00; byte 1 $00
EFB5 LD DE,$07F0 Load DE with $07F0 - DE = $07F0, B = $10
EFB8 LD B,$10 Load B with $10
This entry point is used by the routine at EFC7.
EFBA LD A,($A036) Read $A036 in "Game variables" into A - The actor's record (F1C1)
EFBD CALL $F1C1 Call the routine "Set a thing's state word and state bits" (F1C1)
EFC0 RES 6,(IX+$05) Clear bit 6 of +5
EFC4 OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller - Return NZ
EFC6 RET Return to the caller
Prev: EFAC Up: Map Next: EFC7