.PrintNearestDriver STA yCursor \ Move the cursor to the pixel row in A LDA #27 \ Move the cursor to character column 27 STA xCursor \ Fall through into PrintPositionName to print the \ driver name at column 27 on the specified rowName: PrintNearestDriver [Show more] Type: Subroutine Category: Text Summary: Print a driver's name in the "In front" or "Behind" slot in the headerContext: See this subroutine in context in the source code References: This subroutine is called as follows: * UpdatePositionInfo calls PrintNearestDriver
Arguments: Y The position of the driver whose name we print A The pixel row on which to print the driver name: * 24 = the first line of text at the top of the screen (i.e. the "In front:" section of token 43) * 33 = the second line of text at the top of the screen (i.e. the "Behind:" section of token 44)
[X]
Variable xCursor (category: Text)
The cursor's x-coordinate, which can either be a pixel coordinate or a character row
[X]
Variable yCursor (category: Text)
The cursor's pixel y-coordinate