Skip to navigation

Elite on the BBC Micro

Utility routines: TRADEMODE (Master version)

Name: TRADEMODE [View in context] Type: Subroutine [Compare versions] Category: Utility routines Summary: Clear the screen and set up a trading screen
Clear the top part of the screen, draw a white border, set the palette for trading screens, and set the current view type in QQ11 to A. Arguments: A The type of the new current view (see QQ11 for a list of view types) Other entry points: TRADE Set the palette for trading screens and switch the current colour to white
.TRADEMODE JSR TT66 \ Clear the top part of the screen, draw a white border, \ and set the current view type in QQ11 to A JSR FLKB \ Call FLKB to flush the keyboard buffer .TRADE LDA #48 \ Switch to the mode 1 palette for trading screens, JSR DOVDU19 \ which is yellow (colour 1), magenta (colour 2) and \ white (colour 3) LDA #CYAN \ Switch to colour 3, which is white in the trade view STA COL RTS \ Return from the subroutine