Prev: 27798 Up: Map Next: 27870
27830: Print Scores
Used by the routines at AddPointsToScore and CreateWindow.
Sets up the player score.
Score_Player 27830 LD HL,16397 HL=16397.
27833 LD DE,24140 DE=Score_1.
27836 JR PrintScore Jump to PrintScore.
Sets up the HI score.
Score_HI 27838 LD HL,16408 HL=16408.
27841 LD DE,24137 DE=HighScore_1.
Prints the score.
PrintScore 27844 LD B,3 B=3.
This entry point is used by the routine at DisplayMiles.
PrintScore_Loop 27846 LD A,(DE) A=DE.
27847 RRCA A=A / 16.
27848 RRCA
27849 RRCA
27850 RRCA
27851 AND %00001111 Keep only bits 0-3.
27853 ADD A,48 A=A + 48 (convert to ASCII).
27855 CALL PrintScreen Call PrintScreen.
This entry point is used by the routines at DisplayCupsCollected, DisplayMiles and PrintBestTime.
Score_Player_0 27858 LD A,(DE) A=DE.
27859 AND %00001111 Keep only bits 0-3.
27861 ADD A,48 A=A + 48 (convert to ASCII).
27863 CALL PrintScreen Call PrintScreen.
27866 INC DE Increment DE by one.
27867 DJNZ PrintScore_Loop Decrease counter by one and loop back to PrintScore_Loop until counter is zero.
27869 RET Return.
View the equivalent code in;
Prev: 27798 Up: Map Next: 27870