Prev: EB1F Up: Map Next: EB41
EB20: 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 EB20 XOR A Clear A to 00.
EB21 JR Print_ScoreDigits_StoreSuppressFlag Jump to Print_ScoreDigits_StoreSuppressFlag to continue the loop.
EB23 LD A,$01 Load A with 01.
Remember the leading-zero suppress flag at Flag_ScoreLeadingZeroSuppress, then print thousands/hundreds/tens/units.
Print_ScoreDigits_StoreSuppressFlag EB25 LD ($EB1F),A Set Flag_ScoreLeadingZeroSuppress.
EB28 LD DE,$03E8 Load DE with 03E8.
EB2B CALL Print_Digit Call Print_Digit to print Digit.
EB2E LD DE,$0064 Load DE with 0064.
EB31 CALL Print_Digit Call Print_Digit to print Digit.
EB34 LD DE,$000A Load DE with 000A.
EB37 CALL Print_Digit Call Print_Digit to print Digit.
EB3A INC A Step the print-position / counter on by one.
EB3B LD ($EB1F),A Set Flag_ScoreLeadingZeroSuppress.
EB3E LD A,L Copy L into A.
EB3F JR Print_Digit_SelectGlyph Jump to Print_Digit_SelectGlyph to blit Next Row.
Prev: EB1F Up: Map Next: EB41