Skip to navigation


Text: PrintFirstLine

Name: PrintFirstLine [Show more] Type: Subroutine Category: Text Summary: Prints a text token on the first 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 PrintFirstLine * ResetVariables calls PrintFirstLine * UpdateLapTimers calls PrintFirstLine * PrintSecondLine calls via PrintFirstLine+2

Arguments: X The token number (0 to 54)
Other entry points: PrintFirstLine+2 Print the token on the second text line at the top of the driving screen
.PrintFirstLine LDA #24 \ Set A = 24 to use as the value for yCursor below, so \ we print the text token on the first line of the two \ text lines at the top of the driving screen STA yCursor \ Move the cursor to pixel row A (which will either be \ the first or the second text line at the top of the \ screen) LDA #1 \ Move the cursor to character column 1 STA xCursor \ Fall through into PrintToken to print the token in X \ at (xCursor, yCursor)