Sherlock: annotated disassembly

Routines

Prev: C898 Up: Map Next: C8AF
C8A7: How many locations has object A? (Z if exactly one)
Byte 0 of the object's record minus 1.
Input
A A thing number
Output
F Z if the thing has exactly one location
A Its location count less 1
C8A7 CALL $D237 Call the routine "Resolve an id (in A) to its full entity record" (D237) - A = byte 0 of the thing's record, less 1 (Z if it was 1)
C8AA LD A,(IX+$00) Read the first byte of the record at IX into A
C8AD DEC A Subtract one from A
C8AE RET Return to the caller
Prev: C898 Up: Map Next: C8AF