Sherlock: annotated disassembly

Routines

Prev: A65C Up: Map Next: A66C
A65D: Code $00: print the thing whose address is the next parameter
Clears $A028 and takes the next word from the message's parameters (A66C); if it is not zero, prints that thing's name (A7BA, D405).
Input
(message parameters) The next word: the thing to name
Output
F Z
A 0
A65D XOR A Clear A to zero (and the carry flag) - Clear $A028
A65E LD ($A028),A Store A in $A028 in "Game variables"
A661 CALL $A66C Call the routine "Code $01: print the next parameter as a word (and:..." (A66C) - Take the next message parameter (A66C)
A664 EX DE,HL Swap DE and HL
A665 LD A,H Copy H into A
A666 OR L Set in A the bits that are set in L
A667 CALL NZ,$A7BA If the result is not zero, call the routine "Print the name of the thing at HL (as D405)" (A7BA) - If it is not zero, print it (A7BA)
A66A XOR A Set A to zero, which sets the zero flag for the caller
A66B RET Return to the caller
Prev: A65C Up: Map Next: A66C