Skip to navigation

Elite on the BBC Micro

Market: TT208 [Elite-A, Parasite]

Name: TT208 [Show more] Type: Subroutine Category: Market Summary: Show the Sell Cargo screen (red key f2) or Sell Equipment screen (CTRL-f2)
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * TT102 calls TT208
.TT208 LDA #4 \ Clear the top part of the screen, draw a white border, JSR TT66 \ and set the current view type in QQ11 to 4 (Sell \ Cargo screen) LDA #10 \ Move the text cursor to column 10 STA XC JSR FLKB \ Flush the keyboard buffer LDA #205 \ Print recursive token 45 ("SELL") JSR TT27 JSR CTRL \ Scan the keyboard to see if CTRL is currently pressed, \ returning a negative value in A if it is BMI sell_jump \ If CTRL is being pressed, jump to sell_jump to show \ the Sell Equipment screen (CTRL-f2) LDA #206 \ Print recursive token 46 (" CARGO{sentence case}") JSR NLIN3 \ draw a horizontal line at pixel row 19 to box in the \ title JSR TT67 \ Print a newline \ Fall through into TT210 to show the Inventory screen \ with the option to sell