Skip to navigation

Elite on the BBC Micro and NES

Text: TT42

[NES version, Bank 2]

Name: TT42 [Show more] Type: Subroutine Category: Text Summary: Print a letter in lower case
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * TT45 calls TT42 * TT27 calls via TT44

Arguments: A The character to be printed. Can be one of the following: * 7 (beep) * 10-13 (line feeds and carriage returns) * 32-95 (ASCII capital letters, numbers and punctuation)
Other entry points: TT44 Jumps to TT26 to print the character in A (used to enable us to use a branch instruction to jump to TT26)
.TT42 TAX ; Convert the character in A into lower case by looking LDA lowerCase,X ; up the lower case ASCII value from the lowerCase table .TT44 JMP TT26 ; Print the character in A