Sherlock: annotated disassembly

Routines

Prev: E5A8 Up: Map Next: E5C1
E5AD: Verb 131 (scripts only): is the direct object in room n?
864 successes in 84 turns, each with the thing really in that room.
Used by: internal verb 131 (IS IN: is the direct object in room (indirect object)?).
Input
$A034 The thing
$A035 The room
Output
F NZ if the thing is in that room; otherwise $DC15
E5AD DEFB $4C,$04,$B1,$E5 Action record header: flags $4C; bit 6: pre-check at E5B1; byte 1 $04
E5B1 LD IX,($A013) The direct object's record
E5B5 LD A,($A035) The room asked about...
E5B8 CP (IX+$0F) ...is that where it is?
E5BB JP NZ,$DC15 No: refuse
E5BE OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller - Yes: succeed
E5C0 RET Return to the caller
Prev: E5A8 Up: Map Next: E5C1