![]() |
Routines |
| Prev: 70F9 | Up: Map | Next: 714C |
|
Used by the routine at CreateWindow.
|
||||
|
Sets up the 1UP score.
|
||||
| Score_1UP | 711C | LD HL,$4021 | HL=4021 (screen buffer address). | |
| 711F | LD DE,$5CF4 | DE=1UP_Score. | ||
| 7122 | JR PrintScore | Jump to PrintScore. | ||
|
Sets up the 2UP score.
|
||||
| Score_2UP | 7124 | LD HL,$4039 | HL=4039 (screen buffer address). | |
| 7127 | LD DE,$5CF7 | DE=2UP_Score. | ||
| 712A | JR PrintScore | Jump to PrintScore. | ||
|
Sets up the HI score.
|
||||
| Score_HI | 712C | LD HL,$402D | HL=402D (screen buffer address). | |
| 712F | LD DE,$5CF0 | DE=High_Score. | ||
|
Prints the score.
|
||||
| PrintScore | 7132 | LD B,$03 | B=03. | |
| PrintScore_Loop | 7134 | LD A,(DE) | A=DE. | |
| 7135 | RRCA | A=A / 10. | ||
| 7136 | RRCA | |||
| 7137 | RRCA | |||
| 7138 | RRCA | |||
| 7139 | AND %00001111 | Keep only bits 0-3. | ||
| 713B | ADD A,$30 | A=A + 30 (convert to ASCII). | ||
| 713D | CALL PrintScreen | Call PrintScreen. | ||
| 7140 | LD A,(DE) | A=DE. | ||
| 7141 | AND %00001111 | Keep only bits 0-3. | ||
| 7143 | ADD A,$30 | A=A + 30 (convert to ASCII). | ||
| 7145 | CALL PrintScreen | Call PrintScreen. | ||
| 7148 | INC DE | Increment DE by one. | ||
| 7149 | DJNZ PrintScore_Loop | Decrease counter by one and loop back to PrintScore_Loop until counter is zero. | ||
| 714B | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 70F9 | Up: Map | Next: 714C |