Prev: 7415 Up: Map Next: 7468
7438: Print Scores
Used by the routine at CreateWindow.
Sets up the 1UP score.
Score_1UP 7438 LD HL,$4021 HL=4021 (screen buffer address).
743B LD DE,$5F0E DE=1UP_Score_1.
743E JR PrintScore Jump to PrintScore.
Sets up the 2UP score.
Score_2UP 7440 LD HL,$4039 HL=4039 (screen buffer address).
7443 LD DE,$5F11 DE=2UP_Score_1.
7446 JR PrintScore Jump to PrintScore.
Sets up the HI score.
Score_HI 7448 LD HL,$402D HL=402D (screen buffer address).
744B LD DE,$5F09 DE=HighScore_1.
Prints the score.
PrintScore 744E LD B,$03 B=03.
This entry point is used by the routine at 6C7A.
PrintScore_Loop 7450 LD A,(DE) A=DE.
7451 RRCA A=A / 10.
7452 RRCA
7453 RRCA
7454 RRCA
7455 AND %00001111 Keep only bits 0-3.
7457 ADD A,$30 A=A + 30 (convert to ASCII).
7459 CALL PrintScreen Call PrintScreen.
745C LD A,(DE) A=DE.
745D AND %00001111 Keep only bits 0-3.
745F ADD A,$30 A=A + 30 (convert to ASCII).
7461 CALL PrintScreen Call PrintScreen.
7464 INC DE Increment DE by one.
7465 DJNZ PrintScore_Loop Decrease counter by one and loop back to PrintScore_Loop until counter is zero.
7467 RET Return.
View the equivalent code in;
Prev: 7415 Up: Map Next: 7468