Sherlock: annotated disassembly

Routines

Prev: A851 Up: Map Next: A85C
A852: Code $1B: capitals on/off
Toggles A851. While it is set every letter is printed as a capital (AA59) instead of the usual sentence case. Which messages use code $1B was not found.
Output
A 0
$A851 Toggled
A852 LD A,($A851) Read "Code $1B: the all-capitals flag (read at AA59)" (A851) into A - Toggle the capital flag A851
A855 XOR $01 Flip in A the bits that are set in $01
A857 LD ($A851),A Store A in "Code $1B: the all-capitals flag (read at AA59)" (A851)
A85A XOR A Set A to zero, which sets the zero flag for the caller - A = 0
A85B RET Return to the caller
Prev: A851 Up: Map Next: A85C