Sherlock: annotated disassembly

Routines

Prev: E7E7 Up: Map Next: EB11
EAF6: Action record: Lestrade puts the policeman into the police cab (RUN at $EA5F)
Addresses named in the title: EA5F.
The direct object (the police cab) becomes the holder (+1) of the indirect object (the local policeman) and both are placed in room $32 (50, the main street).
Input
$A034 The police cab
$A015 The indirect object's record
Output
F NZ; the policeman is held by the cab and both are in room $32
EAF6 DEFB $07,$07 Action record header: flags $07; byte 1 $07
EAF8 LD A,($A034) The direct object's number ($A034)...
EAFB LD IX,($A015) ...becomes the holder (+1) of the indirect object's record ($A015)
EAFF LD (IX+$01),A Store A in byte +1 of the record at IX - Both are placed in room $32 (+15)
EB02 LD (IX+$0F),$32 Set byte +15 of the record at IX to $32
EB06 LD IX,($A013) Read $A013 in "Game variables" into IX
EB0A LD (IX+$0F),$32 Set byte +15 of the record at IX to $32
EB0E OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed
EB10 RET Return to the caller
Prev: E7E7 Up: Map Next: EB11