Skip to navigation

Revs on the BBC Micro

Text: PrintSecondLine

Name: PrintSecondLine [Show more] Type: Subroutine Category: Text Summary: Prints a text token on the second text line at the top of the driving screen
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * PrintSecondLineGap calls PrintSecondLine * ResetVariables calls PrintSecondLine

Arguments: X The token number (0 to 54)
.PrintSecondLine LDA #33 \ Set A = 33 to use as the value for yCursor below, so \ we print the text token on the second text line at the \ top of the driving screen BNE PrintFirstLine+2 \ Jump to PrintFirstLine+2 to print the token in X on \ the second text line in the driving screen (this BNE \ is effectively a JMP as A is never zero)