![]() |
Routines |
| Prev: 27830 | Up: Map | Next: 27901 |
|
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.
|
||||||||
| DisplayMiles | 27870 | LD HL,16481 | Set the screen position of the miles, 16481. | |||||
| 27873 | LD DE,24109 | Point DE at the miles (Miles). | ||||||
| 27876 | LD B,3 | Set the byte counter to 3 (the miles are 3 bytes, so 6 digits). | ||||||
| 27878 | CALL PrintScore_Loop | Print the miles using PrintScore_Loop. | ||||||
| 27881 | LD HL,16417 | Set the screen position of the time, 16417. | ||||||
|
This entry point is used by the routine at HandlerCup.
|
||||||||
| DisplayTime_Minutes | 27884 | LD DE,24113 | Point DE at the time (Time_1). | |||||
| 27887 | LD B,2 | Set the byte counter to 2 (the single hours digit and the two minutes digits). | ||||||
| 27889 | CALL PrintScore_SecondDigit | Call PrintScore_SecondDigit to skip the first digit of the hours byte. | ||||||
| 27892 | LD DE,24115 | Point DE at the seconds (Time_3). | ||||||
|
This entry point is used by the routine at PrintBestTime.
|
||||||||
| DisplayTime_Seconds | 27895 | INC HL | Move on one column to leave a gap before the seconds. | |||||
| 27896 | LD B,1 | Set the byte counter to 1 (the two seconds digits). | ||||||
| 27898 | JP PrintScore_Loop | Jump to PrintScore_Loop to print the seconds. | ||||||
| Prev: 27830 | Up: Map | Next: 27901 |