.PrintPositionName LDX driversInOrder,Y \ Set X to the number of the driver in position Y STX driverPrinted \ Store the driver number in driverPrinted, so we can \ return it JSR GetDriverAddress \ Set (Y A) to the address of driver X's name JSR PrintDriverName \ Print the name of the driver at address (Y A) RTS \ Return from the subroutineName: PrintPositionName [Show more] Type: Subroutine Category: Text Summary: Print the name of the driver in a specific position in the driver position listContext: See this subroutine in context in the source code References: This subroutine is called as follows: * PrintDriverTable calls PrintPositionName
Arguments: Y The position of the driver whose name we print
Returns: driverPrinted The number of the driver that we printed
[X]
Subroutine GetDriverAddress (category: Text)
Get the address of the specified driver's name
[X]
Subroutine PrintDriverName (category: Text)
Print a driver's name
[X]
Variable driverPrinted in workspace Zero page
The number of the driver we just printed in the PrintPositionName routine
[X]
Variable driversInOrder in workspace Stack variables
A list of driver numbers in order