.PrintMarketItem TAY ; Set Y to the market item number CLC ; Move the text cursor to the row for this market item, LDX languageIndex ; starting from item 0 at the top, on the correct row ADC yMarketPrice,X ; for the chosen language STA YC TYA ; Call TT151 to print the item name, market price and JMP TT151 ; availability of the current item, and set QQ24 to the ; item's price / 4, QQ25 to the quantity available and ; QQ19+1 to byte #1 from the market prices table for ; this item ; ; When done, return from the subroutine using a tail ; callName: PrintMarketItem [Show more] Type: Subroutine Category: Market Summary: Print the name, price and availability of a market item on the correct row for the chosen languageContext: See this subroutine in context in the source code References: This subroutine is called as follows: * BuyAndSellCargo calls PrintMarketItem
Arguments: A The item number of the market item to display
[X]
Subroutine TT151 (category: Market)
Print the name, price and availability of a market item
[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 yMarketPrice (category: Market)
The text row for the Market Price title for each language