![]() |
Routines |
| Prev: 46956 | Up: Map | Next: 47046 |
|
Used by the routine at HandlerHallOfFame.
Draws the hall of fame: the heading, the eight places of the table, and the score and the three letters of the name for each of them.
|
||||||||
| HallOfFame | 46988 | XOR A | Clear the large window to black using ClearLargeWindowWithAttributes. | |||||
| 46989 | CALL ClearLargeWindowWithAttributes | Clear the large window. | ||||||
| 46992 | LD DE,47100 | Point DE' at HallOfFame_Attributes. | ||||||
| 46995 | EXX | Switch that address into DE'. | ||||||
| 46996 | LD HL,47109 | Point HL at HallOfFame_Coordinates. | ||||||
| 46999 | LD DE,47127 | Point DE at HallOfFame_Heading. | ||||||
| 47002 | LD B,9 | There are nine lines of text. | ||||||
| 47004 | CALL PrintTextList | Print the heading and the places using PrintTextList. | ||||||
| 47007 | LD BC,776 | There are eight rows of scores... | ||||||
| 47010 | LD DE,47046 | ...in the table of the high scores. | ||||||
| 47013 | LD HL,12360 | Point HL at the coordinates of the first row. | ||||||
| HallOfFame_Loop | 47016 | PUSH BC | Save the counter... | |||||
| 47017 | PUSH HL | ...and the coordinates. | ||||||
| 47018 | CALL ScreenAddress | Find the screen address using ScreenAddress. | ||||||
| 47021 | CALL PrintSmallNumber | Print the score using PrintSmallNumber. | ||||||
| 47024 | LD B,3 | There are three letters in a name. | ||||||
| 47026 | INC L | Move on three characters to the right. | ||||||
| 47027 | INC L | |||||||
| 47028 | INC L | |||||||
| HallOfFame_Initials | 47029 | LD A,(DE) | Fetch a letter of the name... | |||||
| 47030 | INC DE | ...and move on to the next one. | ||||||
| 47031 | CALL PrintScreen | Print it using PrintScreen. | ||||||
| 47034 | DJNZ HallOfFame_Initials | Loop back until all three letters have been printed. | ||||||
| 47036 | POP HL | Restore the coordinates. | ||||||
| 47037 | LD A,H | Fetch the Y coordinate... | ||||||
| 47038 | ADD A,16 | ...move down by 16 pixels... | ||||||
| 47040 | LD H,A | ...and keep it. | ||||||
| 47041 | POP BC | Restore the counter. | ||||||
| 47042 | DEC C | Count down the rows. | ||||||
| 47043 | JR NZ,HallOfFame_Loop | Loop back until all eight rows have been printed. | ||||||
| 47045 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 46956 | Up: Map | Next: 47046 |