![]() |
Routines |
| Prev: A480 | Up: Map | Next: A4AB |
|
Used by the routines at ShiftTextPointer and PrintLetterD.
Prints B as up to three decimal digits.
|
||||
| PrintHundredsTensAndUnits | A490 | PUSH HL | Clear the high byte. | |
| A491 | PUSH DE | |||
| A492 | LD L,B | |||
| A493 | LD H,$00 | |||
| A495 | LD C,H | |||
| A496 | LD DE,$0064 | Take 0064, one hundred, as the next unit. | ||
| A499 | CALL PrintOneDecimalDigit | Call PrintOneDecimalDigit to print this digit. | ||
| A49C | LD DE,$000A | Take 000A, ten, as the unit for PrintOneDecimalDigit. | ||
| A49F | CALL PrintOneDecimalDigit | |||
| A4A2 | LD A,L | Add 30 to the units left in L, call Print_Character to print the digit, and restore the registers. | ||
| A4A3 | ADD A,$30 | |||
| A4A5 | CALL Print_Character | |||
| A4A8 | POP DE | |||
| A4A9 | POP HL | |||
| A4AA | RET | Return. | ||
| Prev: A480 | Up: Map | Next: A4AB |