Prev: 61050 Up: Map Next: 62068
62002: New High Score Suffix
Used by the routine at HighScoreMessaging.
NewHighScore_Suffix 62002 LD A,(24183) If HighScorePosition is zero, jump to NewHighScore_Suffix_Top_Score.
62005 AND A
62006 JP Z,NewHighScore_Suffix_Top_Score
0 is the "Top Score" so we +1 to make it human readable.
62009 ADD A,49 A=A+49 (convert to ASCII + 1).
62011 LD HL,20487 HL=20487 (screen buffer location).
62014 PUSH AF Stash the ASCII highscore position on the stack.
62015 CALL PrintScreen Call PrintScreen.
62018 POP AF A=the ASCII highscore position from the stack.
62019 SUB 49 A=A-49.
62021 LD HL,32840 HL=32840 (screen location).
Remember that 0 is the "Top Score" so 1 is 2nd place.
62024 CP 1 If the highscore position is 1 jump to NewHighScore_Suffix_ND.
62026 JP Z,NewHighScore_Suffix_ND
And 2 is 3rd...
62029 CP 2 If the highscore position is 2 jump to NewHighScore_Suffix_RD.
62031 JP Z,NewHighScore_Suffix_RD
Anything higher will use the "TH" suffix messaging.
NewHighScore_Suffix_TH 62034 LD DE,62068 DE=HighScore_Suffixes_TH.
NewHighScore_Suffix_Print 62037 CALL PrintStringColour Call PrintStringColour.
Handle displaying "HIGHEST SCORE" messaging.
NewHighScore_Suffix_Highest 62040 LD HL,32864 HL=32864 (screen location).
62043 LD DE,62087 DE=HighScore_Highest_Score.
62046 JP PrintStringColour Jump to PrintStringColour.
Handle displaying the "ND" suffix messaging.
NewHighScore_Suffix_ND 62049 LD DE,62081 DE=HighScore_Suffixes_ND.
62052 JR NewHighScore_Suffix_Print Jump to NewHighScore_Suffix_Print.
Handle displaying the "RD" suffix messaging.
NewHighScore_Suffix_RD 62054 LD DE,62084 DE=HighScore_Suffixes_RD.
62057 JR NewHighScore_Suffix_Print Jump to NewHighScore_Suffix_Print.
Handle displaying "TOP SCORE" messaging.
NewHighScore_Suffix_Top_Score 62059 LD HL,32856 HL=32856 (screen location).
62062 LD DE,62071 DE=HighScore_Top_Score.
62065 JP PrintStringColour Jump to PrintStringColour.
Prev: 61050 Up: Map Next: 62068