Skip to navigation


Drawing the screen: TRADEMODE

[Commodore 64 version]

Name: TRADEMODE [Show more] Type: Subroutine Category: Drawing the screen Summary: Clear the screen and set up a trading screen
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * EQSHP calls TRADEMODE * STATUS calls TRADEMODE * TT167 calls TRADEMODE * TT208 calls TRADEMODE * TT213 calls TRADEMODE * TT219 calls TRADEMODE * TT25 calls TRADEMODE

Clear the top part of the screen, draw a border 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)
.TRADEMODE JSR TT66 ; Clear the top part of the screen, draw a border box, ; and set the current view type in QQ11 to A JSR FLKB ; Call FLKB to flush the keyboard buffer LDA #48 ; Switch to the palette for trading screens, though this JSR DOVDU19 ; doesn't actually do anything in this version of Elite ;LDA #CYAN ; These instructions are commented out in the original ;JMP DOCOL ; source RTS ; Return from the subroutine