Sherlock: annotated disassembly

Routines

Prev: DE6F Up: Map Next: DEAF
DE9D: Shared OPEN action ($AA71 entry #6, CLOSE is #7)
Addresses named in the title: AA71.
OPEN: `LD IX,($A013); SET 5,(IX+5)` - sets bit 5 of the target record's field +5.
Input
$A013 The target's record
Output
F NZ; the target is open (+5 bit 5 set)
DE9D DEFB $38,$10,$80,$21,$00,$00,$00 Action record header: flags $38; bit 5: test D078 first; bit 4: five extra bytes; byte 1 $10
DEA4 LD IX,($A013) IX -> the target object's record
DEA8 SET 5,(IX+$05) Mark it open
DEAC OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller
DEAE RET Return to the caller
Prev: DE6F Up: Map Next: DEAF