Sherlock: annotated disassembly

Routines

Prev: DEAF Up: Map Next: DED9
DEC1: Default action: put something into something (PUT IN, PUT ON, DROP IN)
The pre-check DED9 sets IX to the thing being moved and IY to the container, then runs the fit check at DEE4. The body moves the thing into the container's room and makes the container its new container.
Input
IX The thing being moved
IY The container
Output
F NZ; the thing is in the container's room and held by it
DEC1 DEFB $7A,$18,$D9,$DE,$09,$00,$00,$40 Action record header: flags $7A; bit 5: test D078 first; bit 6: pre-check at DED9; bit 4: five extra bytes; byte 1 $18
DEC9 DEFB $28
DECA LD A,(IY+$0F) The thing goes to the container's room...
DECD LD (IX+$0F),A Store A in byte +15 of the record at IX
DED0 LD A,($A035) ...and the container now holds it
DED3 LD (IX+$01),A Store A in byte +1 of the record at IX
DED6 OR $01 Succeed
DED8 RET Return to the caller
Prev: DEAF Up: Map Next: DED9