Skip to navigation

Revs on the BBC Micro

Text: PrintNearestDriver

Name: PrintNearestDriver [Show more] Type: Subroutine Category: Text Summary: Print a driver's name in the "In front" or "Behind" slot in the header
Context: 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)
.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 row