Prev: 60191 Up: Map Next: 60225
60192: Print Score Digits
Used by the routines at Initialise_Room_Display and Update_HighScoreDisplay.
Print the score in HL as four digits via Print_Digit, suppressing leading zeros until a non-zero digit (or the units) using Flag_ScoreLeadingZeroSuppress.
Print_ScoreDigits 60192 XOR A Clear A to 0.
60193 JR Print_ScoreDigits_StoreSuppressFlag Jump to Print_ScoreDigits_StoreSuppressFlag to continue the loop.
60195 LD A,1 Load A with 1.
Remember the leading-zero suppress flag at Flag_ScoreLeadingZeroSuppress, then print thousands/hundreds/tens/units.
Print_ScoreDigits_StoreSuppressFlag 60197 LD (60191),A Set Flag_ScoreLeadingZeroSuppress.
60200 LD DE,1000 Load DE with 1000.
60203 CALL Print_Digit Call Print_Digit to print Digit.
60206 LD DE,100 Load DE with 0100.
60209 CALL Print_Digit Call Print_Digit to print Digit.
60212 LD DE,10 Load DE with 0010.
60215 CALL Print_Digit Call Print_Digit to print Digit.
60218 INC A Step the print-position / counter on by one.
60219 LD (60191),A Set Flag_ScoreLeadingZeroSuppress.
60222 LD A,L Copy L into A.
60223 JR Print_Digit_SelectGlyph Jump to Print_Digit_SelectGlyph to blit Next Row.
Prev: 60191 Up: Map Next: 60225