.PrintDriverName STY S \ Set (S R) = (Y A) STA R LDY #0 \ Set a character counter in Y .name1 LDA (R),Y \ Set A to the Y-th character from (S R) JSR PrintCharacter \ Print the character in A INY \ Increment the character counter CPY #12 \ Loop back to print the next character until we have BNE name1 \ printed all 12 characters RTS \ Return from the subroutineName: PrintDriverName [Show more] Type: Subroutine Category: Text Summary: Print a driver's nameContext: See this subroutine in context in the source code References: This subroutine is called as follows: * PrintDriverPrompt calls PrintDriverName * PrintPositionName calls PrintDriverName
Arguments: (Y A) Address of 12-character driver name
[X]
Subroutine PrintCharacter (category: Text)
Print a character on-screen
[X]
Label name1 is local to this routine