Skip to navigation

Elite on the BBC Micro

Market: TT163 [Cassette version]

Name: TT163 [Show more] Type: Subroutine Category: Market Summary: Print the headers for the table of market prices
Context: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: This subroutine is called as follows: * TT167 calls TT163 * TT219 calls TT163

Print the column headers for the prices table in the Buy Cargo and Market Price screens.
.TT163 LDA #17 \ Move the text cursor in XC to column 17 STA XC LDA #255 \ Print recursive token 95 token ("UNIT QUANTITY BNE TT162+2 \ {crlf} PRODUCT UNIT PRICE FOR SALE{crlf}{lf}") by \ jumping to TT162+2, which contains JMP TT27 (this BNE \ is effectively a JMP as A will never be zero), and \ return from the subroutine using a tail call