![]() |
Routines |
| Prev: BEDF | Up: Map | Next: BF48 |
|
Used by the routine at GameOver.
Prints the percentage complete from PercentageHundreds and PercentageTensAndUnits, with the hundreds digit only when the game is one hundred percent complete.
|
||||||||||
|
Print the hundreds digit only when it is not zero.
|
||||||||||
| PrintPercentage | BF36 | LD DE,$BBFD | Point at the hundreds digit and set the number of digits to one. | |||||||
| BF39 | LD B,$01 | |||||||||
| BF3B | LD A,(DE) | Fetch the hundreds digit and jump to PrintPercentage_NoHundreds if it is zero. | ||||||||
| BF3C | AND A | |||||||||
| BF3D | JR Z,PrintPercentage_NoHundreds | |||||||||
| BF3F | INC B | Include the hundreds digit. | ||||||||
| BF40 | JP PrintBCDNumber_LowerDigit | Jump to PrintBCDNumber_LowerDigit to print the digits. | ||||||||
|
Print the tens and units.
|
||||||||||
| PrintPercentage_NoHundreds | BF43 | INC L | Move the screen position and the pointer on to the tens digit. | |||||||
| BF44 | INC DE | |||||||||
| BF45 | JP PrintBCDNumber | Jump to PrintBCDNumber to print the two digits. | ||||||||
| Prev: BEDF | Up: Map | Next: BF48 |