Skip to navigation


Text: PrintDriverName

Name: PrintDriverName [Show more] Type: Subroutine Category: Text Summary: Print a driver's name
Context: 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
.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 subroutine