Skip to navigation

Elite on the BBC Micro and NES

Version analysis of TT163

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: TT163 Type: Subroutine Category: Market Summary: Print the headers for the table of market prices
Print the column headers for the prices table in the Buy Cargo and Market Price screens.

Code variation 1 of 1Related to Elite's use of the Tube

Tap on a block to expand it, and tap it again to revert.

LDA #17 \ Move the text cursor in XC to column 17 STA XC
LDA #17 \ Move the text cursor in XC to column 17 JSR DOXC
 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