![]() |
Routines |
| Prev: F4FB | Up: Map | Next: F56E |
|
Store the high-score position, blank the screen and show the congratulations banner, then seed the name as "AAA" and reset the name entry timer, cursor and index.
|
||||||||
|
Store the rank and paint the congratulations page.
|
||||||||
| PrepareNameEntry | F535 | LD A,B | Copy the rank into A. | |||||
| F536 | SUB $08 | Subtract 08. | ||||||
| F538 | NEG | Negate it. | ||||||
| F53A | LD ($5E77),A | Write it to HighScorePosition. | ||||||
| F53D | CALL CreateWindow | Call CreateWindow. | ||||||
|
Set the attributes for the congratulations page.
|
||||||||
| F540 | LD HL,$5900 | HL=5900. | ||||||
| F543 | LD C,$02 | Set a row counter in C for 02 loops. | ||||||
| F545 | LD A,$46 | A=INK:YELLOW, PAPER:BLACK (BRIGHT). | ||||||
| PrepareNameEntry_Loop | F547 | LD B,$00 | Set an attribute counter in B for 0100 loops. | |||||
| PrepareNameEntry_FillAttributes | F549 | LD (HL),A | Write A to *HL. | |||||
| F54A | INC HL | Increment HL by one. | ||||||
| F54B | DJNZ PrepareNameEntry_FillAttributes | Decrease the counter by one and jump back to PrepareNameEntry_FillAttributes until it is zero. | ||||||
| F54D | DEC C | Decrease C by one. | ||||||
| F54E | JR NZ,PrepareNameEntry_Loop | Jump back to PrepareNameEntry_Loop until C is zero. | ||||||
|
Print the congratulations banner.
|
||||||||
| F550 | CALL HighScoreMessaging | Call HighScoreMessaging. | ||||||
|
Reset the name entry timer, screen pointer and letter index.
|
||||||||
| F553 | LD HL,$1000 | Write 1000 to HallOfFame_Timer. | ||||||
| F556 | LD ($5E6D),HL | |||||||
| F559 | LD HL,$50AD | Write 50AD to HallOfFame_Pointer. | ||||||
| F55C | LD ($5E75),HL | |||||||
| F55F | XOR A | Write 00 to HallOfFame_Index. | ||||||
| F560 | LD ($5E6F),A | |||||||
|
Seed the name with "AAA".
|
||||||||
| F563 | LD HL,$5E78 | HL=HallOfFame_Name. | ||||||
| F566 | LD B,$03 | Set a letter counter in B for 03 loops. | ||||||
| PrepareNameEntry_FillLetters | F568 | LD (HL),$41 | Write 41 to *HL. | |||||
| F56A | INC HL | Increment HL by one. | ||||||
| F56B | DJNZ PrepareNameEntry_FillLetters | Decrease the counter by one and jump back to PrepareNameEntry_FillLetters until it is zero. | ||||||
| F56D | RET | Return. | ||||||
| Prev: F4FB | Up: Map | Next: F56E |