![]() |
Routines |
| Prev: 63102 | Up: Map | Next: 63174 |
|
Used by the routine at GameRestart.
|
||||
|
Print score; promote it to high score when larger.
|
||||
| Update_HighScoreDisplay | 63142 | LD IX,62724 | Point IX at 62724. | |
| 63146 | LD HL,(29405) | Fetch the current score. | ||
|
Keep the current score while the high-score digits are printed.
|
||||
| 63149 | PUSH HL | Stash HL on the stack. | ||
| 63150 | CALL Print_ScoreDigits | Call Print_ScoreDigits to print the score digits. | ||
| 63153 | POP HL | Restore HL from the stack. | ||
| 63154 | LD DE,(29427) | Fetch the high score. Clear the success marker. Is the current score below the high score? If so, return. | ||
| 63158 | AND A | |||
| 63159 | SBC HL,DE | |||
| 63161 | RET C | |||
| 63162 | ADD HL,DE | Restore the current score (add back the high score). | ||
| 63163 | LD (29427),HL | Store it as the new high score. | ||
| 63166 | LD IX,62742 | Point IX at 62742. | ||
| 63170 | CALL Print_ScoreDigits | Call Print_ScoreDigits to print the high-score digits. | ||
| 63173 | RET | Return. | ||
| Prev: 63102 | Up: Map | Next: 63174 |