.PrintScoreText STY T \ Set Y to the offset of the character that's just after \ the end of the string to print .prin1 LDA scoreText,X \ Print the X-th character from scoreText JSR OSWRCH INX \ Increment X to point to the next character CPX T \ Loop back to print the next character until we have BNE prin1 \ printed all of them RTS \ Return from the subroutineName: PrintScoreText [Show more] Type: Subroutine Category: Scoring Summary: Print text when showing the scores on-screenContext: See this subroutine in context in the source code References: This subroutine is called as follows: * DisplayScore calls PrintScoreText
Arguments: X Offset of the first character to print from scoreText Y Offset of the character that's just after the end of the string that we want to print from scoreText
[X]
Configuration variable OSWRCH = &FFEE
The address for the OSWRCH routine
[X]
Label prin1 is local to this routine
[X]
Variable scoreText (category: Scoring)
The high score text