Sherlock: annotated disassembly

Routines

Prev: E2EE Up: Map Next: E328
E31C: COUNT's pre-check: is the thing countable?
The pre-check named in the header of shared action 10 (COUNT, the money objects, E328): refuses (DC15) unless the direct object ($A013) has bit 5 of its +6 flags set.
Input
$A013 The direct object's record
Output
F NZ if it can be counted (+6 bit 5); otherwise refused ($DC15)
E31C LD IX,($A013) The direct object's record ($A013)
E320 BIT 5,(IX+$06) Test bit 5 of the flags 2 byte (+6) of the thing record at IX (countable) - +6 bit 5 clear: fail (DC15)
E324 JP Z,$DC15 If bit 5 of the flags 2 byte (+6) of the thing record at IX is clear, go back to the routine "Fail: A = 0, HL = 0, Z set" (DC15)
E327 RET Return to the caller
Prev: E2EE Up: Map Next: E328