Sherlock: annotated disassembly

Routines

Prev: C1FC Up: Map Next: C249
C240: Upper-case A if it is a lower-case letter
Used by the routines at C1FC and C41F.
Input
A A character
Output
A The character, in capitals if it was a lower-case letter
C240 CP $61 Compare A with $61 - Lower-case letter (a-z)?
C242 RET C If A is below $61, return
C243 CP $7B Compare A with $7B
C245 RET NC If A is $7B or more, return
C246 AND $5F Keep only bits 0, 1, 2, 3, 4, 6 of A (mask $5F) - Make it upper case (AND $5F)
C248 RET Return to the caller
Prev: C1FC Up: Map Next: C249