Sherlock: annotated disassembly

Routines

Prev: C55A Up: Map Next: C57A
C571: $A00F = an action record's requirement code (header byte 0, low nibble)
Addresses named in the title: $A00F.
Input
IX An action record
Output
$A00F The direct object's requirement code (the low nibble of byte 0)
C571 LD A,(IX+$00) Read the first byte of the record at IX into A - $A00F = the record header's low nibble of byte 0
C574 AND $0F Keep only bits 0, 1, 2, 3 of A (mask $0F)
C576 LD ($A00F),A Store A in $A00F in "Game variables"
C579 RET Return to the caller
Prev: C55A Up: Map Next: C57A