Sherlock: annotated disassembly

Routines

Prev: A277 Up: Map Next: A2A2
A296: Print 18 newlines
Clears the text window by scrolling it: 18 newlines (A2A2), clearing $A019 after each. Used by $9E80 (the end of the game), $A282 and $B00F.
Output
A, B Changed
A296 LD B,$12 18 times...
A298 CALL $A2A2 Call the routine "Print a newline (A kept)" (A2A2) - ...start a new line (A2A2) and clear $A019
A29B XOR A Clear A to zero (and the carry flag)
A29C LD ($A019),A Store A in $A019 in "Game variables"
A29F DJNZ $A298 Count B down and, while it is not zero, go back to A298
A2A1 RET Return to the caller
Prev: A277 Up: Map Next: A2A2