Sherlock: annotated disassembly

Routines

Prev: A75B Up: Map Next: A780
A771: Code $19: print the message at the next parameter
If the parameter is not zero (A5C4).
Input
(message parameters) The next word: a message, or 0
Output
A 0
F Z
A771 PUSH IX Save IX on the stack - Code $19: take the next message parameter (A66C)...
A773 CALL $A66C Call the routine "Code $01: print the next parameter as a word (and:..." (A66C)
A776 EX DE,HL Swap DE and HL - ...and if it is not zero, print the message it points to (A5C4)
A777 LD A,L Copy L into A
A778 OR H Set in A the bits that are set in H
A779 CALL NZ,$A5C4 If the result is not zero, call the routine "Interpret message bytes until the end of the message" (A5C4)
A77C POP IX Restore IX from the stack
A77E XOR A Set A to zero, which sets the zero flag for the caller - Done, A = 0
A77F RET Return to the caller
Prev: A75B Up: Map Next: A780