.SetLanguage LDA tokensLo,Y ; Set (QQ18Hi QQ18Lo) to the language's entry from the STA QQ18Lo ; (tokensHi tokensLo) table LDA tokensHi,Y STA QQ18Hi LDA extendedTokensLo,Y ; Set (TKN1Hi TKN1Lo) to the language's entry from the STA TKN1Lo ; the (extendedTokensHi extendedTokensLo) table LDA extendedTokensHi,Y STA TKN1Hi LDA languageIndexes,Y ; Set languageIndex to the language's index from the STA languageIndex ; languageIndexes table LDA languageNumbers,Y ; Set languageNumber to the language's flags from the STA languageNumber ; languageNumbers table LDA characterEndLang,Y ; Set characterEnd to the end of the language's STA characterEnd ; character set from the characterEndLang table LDA decimalPointLang,Y ; Set decimalPoint to the language's decimal point STA decimalPoint ; character from the decimalPointLang table RTS ; Return from the subroutineName: SetLanguage [Show more] Type: Subroutine Category: Start and end Summary: Set the language-related variables for a specific languageContext: See this subroutine in context in the source code References: This subroutine is called as follows: * ChooseLanguage calls SetLanguage
Arguments: Y The number of the language choice to set
[X]
Variable characterEnd in workspace ZP
The number of the character beyond the end of the printable character set for the chosen language
[X]
Variable characterEndLang (category: Text)
The number of the character beyond the end of the printable character set in each language
[X]
Variable decimalPoint in workspace WP
The decimal point character for the chosen language
[X]
Variable decimalPointLang (category: Text)
The decimal point character to use for each language
[X]
Variable extendedTokensHi (category: Text)
High byte of the extended text token table for each language
[X]
Variable extendedTokensLo (category: Text)
Low byte of the extended text token table for each language
[X]
Variable languageIndex in workspace WP
The language that was chosen on the Start screen as an index into the various lookup tables
[X]
Variable languageIndexes (category: Text)
The index of the chosen language for looking up values from language-indexed tables
[X]
Variable languageNumber in workspace WP
The language that was chosen on the Start screen as a number
[X]
Variable languageNumbers (category: Text)
The language number for each language, as a set bit within a flag byte
[X]
Variable tokensHi (category: Text)
High byte of the text token table for each language
[X]
Variable tokensLo (category: Text)
Low byte of the text token table for each language