Skip to navigation


Scoring: PrintScoreText

Name: PrintScoreText [Show more] Type: Subroutine Category: Scoring Summary: Print text when showing the scores on-screen
Context: 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
.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 subroutine