.PrintCash LDA #%10000000 ; Set bit 7 of QQ17 to switch standard tokens to STA QQ17 ; Sentence Case LDX languageIndex ; Move the text cursor to the correct row for the chosen LDA yCash,X ; language, as given in the yCash table STA YC LDA xCash,X ; Move the text cursor to the correct column for the STA XC ; chosen, as given in the xCash table JMP PCASH ; Jump to PCASH to print recursive token 119 ; ("CASH:{cash} CR{crlf}"), followed by a space, and ; return from the subroutine using a tail callName: PrintCash [Show more] Type: Subroutine Category: Market Summary: Print our cash levels in the correct place for the chosen languageContext: See this subroutine in context in the source code References: This subroutine is called as follows: * BuyAndSellCargo calls PrintCash
[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 xCash (category: Market)
The text column for our cash levels on the Market Price page
[X]
Variable yCash (category: Market)
The text row for the cash levels on the Market Price page