Prev: 49901 Up: Map Next: 49940
49919: Print Score
Used by the routine at StartGame.
Prints the score, as seven digits, in the status panel. The last two digits are always zero.
After PrintScore
print-score
Set the colour and the position of the score.
PrintScore 49919 LD A,70 Use bright yellow ink (attribute 70), and stash it for printing the digits.
49921 EX AF,AF'
49922 LD HL,20710 Set the screen position of the score to 20710 (in the screen buffer).
This entry point is used by the routine at GameOver.
Point at the score and the digit font.
PrintScore_Position 49925 LD DE,48073 Point at the score, and set the number of bytes to print to four.
49928 LD B,4
49930 PUSH HL Stash the screen position on the stack.
49931 LD HL,27870 Point at the font of the digits.
49934 LD (48044),HL Set it as the font.
49937 POP HL Restore the screen position from the stack.
49938 JR PrintBCDNumber_LowerDigit Jump to PrintBCDNumber_LowerDigit to print the digits, starting with the lower digit of the first byte.
Prev: 49901 Up: Map Next: 49940