Prev: 6CB6 Up: Map Next: 6CFD
6CDE: Display Miles/ Time
Used by the routines at CreateWindow and HandlerPlayer.
Prints the miles travelled (six digits) and the time (one digit for the hours, two for the minutes and two for the seconds) in the sidebar.
Before After
display-miles-before display-miles-after
DisplayMiles 6CDE LD HL,$4061 Set the screen position of the miles, 4061.
6CE1 LD DE,$5E2D Point DE at the miles (Miles).
6CE4 LD B,$03 Set the byte counter to 03 (the miles are 03 bytes, so 06 digits).
6CE6 CALL PrintScore_Loop Print the miles using PrintScore_Loop.
6CE9 LD HL,$4021 Set the screen position of the time, 4021.
This entry point is used by the routine at HandlerCup.
DisplayTime_Minutes 6CEC LD DE,$5E31 Point DE at the time (Time_1).
6CEF LD B,$02 Set the byte counter to 02 (the single hours digit and the two minutes digits).
6CF1 CALL PrintScore_SecondDigit Call PrintScore_SecondDigit to skip the first digit of the hours byte.
6CF4 LD DE,$5E33 Point DE at the seconds (Time_3).
This entry point is used by the routine at PrintBestTime.
DisplayTime_Seconds 6CF7 INC HL Move on one column to leave a gap before the seconds.
6CF8 LD B,$01 Set the byte counter to 01 (the two seconds digits).
6CFA JP PrintScore_Loop Jump to PrintScore_Loop to print the seconds.
Prev: 6CB6 Up: Map Next: 6CFD