Prev: 35228 Up: Map Next: 35311
35263: Print Scores
Used by the routine at CreateWindow.
Sets up the 1UP score.
Score_1UP 35263 LD HL,16417 HL=16417 (screen buffer address).
35266 LD DE,24159 DE=1UP_Score_1.
35269 JR PrintScore Jump to PrintScore.
Sets up the 2UP score.
Score_2UP 35271 LD HL,16441 HL=16441 (screen buffer address).
35274 LD DE,24162 DE=2UP_Score_1.
35277 JR PrintScore Jump to PrintScore.
Sets up the HI score.
Score_HI 35279 LD HL,16429 HL=16429 (screen buffer address).
35282 LD DE,24070 DE=High_Score.
Prints the score.
PrintScore 35285 LD B,3 B=3.
This entry point is used by the routine at HallOfFame.
PrintScore_Loop 35287 LD A,(DE) A=DE.
35288 RRCA A=A / 16.
35289 RRCA
35290 RRCA
35291 RRCA
35292 AND %00001111 Keep only bits 0-3.
35294 ADD A,48 A=A + 48 (convert to ASCII).
35296 CALL PrintScreen Call PrintScreen.
35299 LD A,(DE) A=DE.
35300 AND %00001111 Keep only bits 0-3.
35302 ADD A,48 A=A + 48 (convert to ASCII).
35304 CALL PrintScreen Call PrintScreen.
35307 INC DE Increment DE by one.
35308 DJNZ PrintScore_Loop Decrease counter by one and loop back to PrintScore_Loop until counter is zero.
35310 RET Return.
View the equivalent code in;
Prev: 35228 Up: Map Next: 35311