![]() |
Routines |
| Prev: 6C96 | Up: Map | Next: 6CDE |
|
Used by the routines at AddPointsToScore and CreateWindow.
|
||||
|
Sets up the player score.
|
||||
| Score_Player | 6CB6 | LD HL,$400D | HL=400D. | |
| 6CB9 | LD DE,$5E4C | DE=Score_1. | ||
| 6CBC | JR PrintScore | Jump to PrintScore. | ||
|
Sets up the HI score.
|
||||
| Score_HI | 6CBE | LD HL,$4018 | HL=4018. | |
| 6CC1 | LD DE,$5E49 | DE=HighScore_1. | ||
|
Prints the score.
|
||||
| PrintScore | 6CC4 | LD B,$03 | B=03. | |
|
This entry point is used by the routine at DisplayMiles.
|
||||
| PrintScore_Loop | 6CC6 | LD A,(DE) | A=DE. | |
| 6CC7 | RRCA | A=A / 10. | ||
| 6CC8 | RRCA | |||
| 6CC9 | RRCA | |||
| 6CCA | RRCA | |||
| 6CCB | AND %00001111 | Keep only bits 0-3. | ||
| 6CCD | ADD A,$30 | A=A + 30 (convert to ASCII). | ||
| 6CCF | CALL PrintScreen | Call PrintScreen. | ||
|
|
||||
| Score_Player_0 | 6CD2 | LD A,(DE) | A=DE. | |
| 6CD3 | AND %00001111 | Keep only bits 0-3. | ||
| 6CD5 | ADD A,$30 | A=A + 30 (convert to ASCII). | ||
| 6CD7 | CALL PrintScreen | Call PrintScreen. | ||
| 6CDA | INC DE | Increment DE by one. | ||
| 6CDB | DJNZ PrintScore_Loop | Decrease counter by one and loop back to PrintScore_Loop until counter is zero. | ||
| 6CDD | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 6C96 | Up: Map | Next: 6CDE |