![]() |
Routines |
| Prev: 46479 | Up: Map | Next: 46539 |
|
Used by the routine at PrintScore.
Prints a number stored as BCD bytes using big digits, which are two characters tall.
|
||||||||||||||||
| PrintBigNumber | 46511 | PUSH HL | Save the screen address. | |||||||||||||
| 46512 | LD HL,24579 | Point HL at DigitGraphics. | ||||||||||||||
| 46515 | LD (38424),HL | Use them as the current character set. | ||||||||||||||
| 46518 | POP HL | Restore the screen address. | ||||||||||||||
| PrintBigNumber_Byte | 46519 | LD A,(DE) | Fetch a byte of the number. | |||||||||||||
| 46520 | RRCA | Move the upper digit down into the bottom four bits. | ||||||||||||||
| 46521 | RRCA | |||||||||||||||
| 46522 | RRCA | |||||||||||||||
| 46523 | RRCA | |||||||||||||||
| 46524 | AND 15 | Keep only that digit. | ||||||||||||||
| 46526 | CALL PrintBigDigit | Print it using PrintBigDigit. | ||||||||||||||
| 46529 | LD A,(DE) | Fetch the byte again. | ||||||||||||||
| 46530 | AND 15 | Keep only the lower digit. | ||||||||||||||
| 46532 | CALL PrintBigDigit | Print it. | ||||||||||||||
| 46535 | INC DE | Move on to the next byte of the number. | ||||||||||||||
| 46536 | DJNZ PrintBigNumber_Byte | Loop back until every byte has been printed. | ||||||||||||||
| 46538 | RET | Return. | ||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: 46479 | Up: Map | Next: 46539 |