.PrintScore STA T \ Store the byte to print in T LSR A \ Set A to the high nibble of the score (bits 4-7) LSR A LSR A LSR A CLC \ Print the high nibble as a digit ADC #'0' JSR OSWRCH LDA T \ Set A to the low nibble of the score (bits 0-3) AND #%00001111 CLC \ Print the low nibble as a digit ADC #'0' JSR OSWRCH RTS \ Return from the subroutineName: PrintScore [Show more] Type: Subroutine Category: Scoring Summary: Print a scoreContext: See this subroutine in context in the source code References: This subroutine is called as follows: * DisplayScore calls PrintScore
Arguments: A The byte to print, in BCD format (so each nibble is one decimal digit)
[X]
Configuration variable OSWRCH = &FFEE
The address for the OSWRCH routine