Prev: 29562 Up: Map Next: 29645
29597: Print Scores
Used by the routine at CreateWindow.
Sets up the 1UP score.
Score_1UP 29597 LD HL,16417 HL=16417 (screen buffer address).
29600 LD DE,24069 DE=1UP_Score_1.
29603 JR PrintScore Jump to PrintScore.
Sets up the 2UP score.
Score_2UP 29605 LD HL,16441 HL=16441 (screen buffer address).
29608 LD DE,24072 DE=2UP_Score_1.
29611 JR PrintScore Jump to PrintScore.
Sets up the HI score.
Score_HI 29613 LD HL,16429 HL=16429 (screen buffer address).
29616 LD DE,24064 DE=High_Score.
Prints the score.
PrintScore 29619 LD B,3 B=3.
PrintScore_Loop 29621 LD A,(DE) A=DE.
29622 RRCA A=A / 16.
29623 RRCA
29624 RRCA
29625 RRCA
29626 AND %00001111 Keep only bits 0-3.
29628 ADD A,48 A=A + 48 (convert to ASCII).
29630 CALL PrintScreen Call PrintScreen.
29633 LD A,(DE) A=DE.
29634 AND %00001111 Keep only bits 0-3.
29636 ADD A,48 A=A + 48 (convert to ASCII).
29638 CALL PrintScreen Call PrintScreen.
29641 INC DE Increment DE by one.
29642 DJNZ PrintScore_Loop Decrease counter by one and loop back to PrintScore_Loop until counter is zero.
29644 RET Return.
View the equivalent code in;
Prev: 29562 Up: Map Next: 29645