Sherlock: annotated disassembly

Routines

Prev: C571 Up: Map Next: C583
C57A: $A010 = the record's header byte 1, low nibble (the indirect object's requirement)
Addresses named in the title: $A010.
Input
IX An action record
Output
$A010 The indirect object's requirement code (the low nibble of byte 1)
C57A LD A,(IX+$01) Read byte +1 of the record at IX into A - $A010 = the low nibble of byte 1
C57D AND $0F Keep only bits 0, 1, 2, 3 of A (mask $0F)
C57F LD ($A010),A Store A in $A010 in "Game variables"
C582 RET Return to the caller
Prev: C571 Up: Map Next: C583