Prev: 30406 Up: Map Next: 30432
30408: Print the score, lines total or hi-score (1)
Used by the routines at 27387, 27406, 30464, 62705 and 63456. Prepares the buffer at 55563 with the graphic data for the digits of the number in HL, then copies the graphic data to the screen at the location specified by DE.
Input
DE Display file address: 20924 (score), 20956 (lines) or 20988 (hi-score)
HL Score, lines total or hi-score
30408 EX DE,HL Transfer the score, lines total or hi-score to DE
30409 CALL 30278 Generate a 7x24-bit graphic for the number stored in DE
30412 EX DE,HL Transfer the display file address back to DE
30413 LD HL,55563 The graphic data for the number is stored in the buffer at 55563
30416 LD BC,2047 B=7 (number of pixel rows), C=255
30419 PUSH DE Save the display file address temporarily
30420 LDI Transfer a 24-bit wide row of pixels to the screen
30422 LDI
30424 LDI
30426 POP DE Restore the display file address to DE
30427 INC D Next pixel row on the screen
30428 DJNZ 30419 Jump back until all 7 pixel rows are done
30430 JR 30457 Jump over the routine at 30432
Prev: 30406 Up: Map Next: 30432