This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
Name: TRADEMODE Type: Subroutine Category: Drawing the screen
Arguments: A The type of the new current view (see QQ11 for a list of view types)
Other entry points: TRADEMODE2 Set the palette for trading screens and switch the current colour to white
.TRADEMODE
The 6502SP version implements printable trade screens by checking whether CTRL is being pressed before displaying the relevant screen.
This variation is blank in the Master version.
PHA \ Store the view type on the stack so we can restore it \ after the call to CTRL JSR CTRL \ Scan the keyboard to see if CTRL is currently pressed STA printflag \ Store the result in printflag, which will have bit 7 \ set (and will therefore enable printing) if CTRL is \ being pressed PLA \ Restore the view type from the stack
JSR TT66 \ Clear the top part of the screen, draw a border box, \ and set the current view type in QQ11 to A