![]() |
Routines |
| Prev: 29717 | Up: Map | Next: 29800 |
|
Used by the routine at CreateWindow.
|
||||
|
Sets up the 1UP score.
|
||||
| Score_1UP | 29752 | LD HL,16417 | HL=16417 (screen buffer address). | |
| 29755 | LD DE,24334 | DE=1UP_Score_1. | ||
| 29758 | JR PrintScore | Jump to PrintScore. | ||
|
Sets up the 2UP score.
|
||||
| Score_2UP | 29760 | LD HL,16441 | HL=16441 (screen buffer address). | |
| 29763 | LD DE,24337 | DE=2UP_Score_1. | ||
| 29766 | JR PrintScore | Jump to PrintScore. | ||
|
Sets up the HI score.
|
||||
| Score_HI | 29768 | LD HL,16429 | HL=16429 (screen buffer address). | |
| 29771 | LD DE,24329 | DE=HighScore_1. | ||
|
Prints the score.
|
||||
| PrintScore | 29774 | LD B,3 | B=3. | |
|
This entry point is used by the routine at 27770.
|
||||
| PrintScore_Loop | 29776 | LD A,(DE) | A=DE. | |
| 29777 | RRCA | A=A / 16. | ||
| 29778 | RRCA | |||
| 29779 | RRCA | |||
| 29780 | RRCA | |||
| 29781 | AND %00001111 | Keep only bits 0-3. | ||
| 29783 | ADD A,48 | A=A + 48 (convert to ASCII). | ||
| 29785 | CALL PrintScreen | Call PrintScreen. | ||
| 29788 | LD A,(DE) | A=DE. | ||
| 29789 | AND %00001111 | Keep only bits 0-3. | ||
| 29791 | ADD A,48 | A=A + 48 (convert to ASCII). | ||
| 29793 | CALL PrintScreen | Call PrintScreen. | ||
| 29796 | INC DE | Increment DE by one. | ||
| 29797 | DJNZ PrintScore_Loop | Decrease counter by one and loop back to PrintScore_Loop until counter is zero. | ||
| 29799 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 29717 | Up: Map | Next: 29800 |