Sherlock: annotated disassembly

Routines

Prev: DE9D Up: Map Next: DEC1
DEAF: Shared CLOSE action ($AA71 entry #7)
Addresses named in the title: AA71.
`LD IX,($A013); RES 5,(IX+5)`: clears the target's 'open' bit.
Input
$A013 The target's record
Output
F NZ; the target is closed (+5 bit 5 clear)
DEAF DEFB $38,$10,$00,$20,$00,$00,$00 Action record header: flags $38; bit 5: test D078 first; bit 4: five extra bytes; byte 1 $10
DEB6 LD IX,($A013) IX -> the target object's record
DEBA RES 5,(IX+$05) Mark it closed
DEBE OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller
DEC0 RET Return to the caller
Prev: DE9D Up: Map Next: DEC1