Prev: 42112 Up: Map Next: 42155
42128: Print Hundreds, Tens And Units
Used by the routines at ShiftTextPointer and PrintLetterD.
Prints B as up to three decimal digits.
PrintHundredsTensAndUnits 42128 PUSH HL Clear the high byte.
42129 PUSH DE
42130 LD L,B
42131 LD H,0
42133 LD C,H
42134 LD DE,100 Take 0100, one hundred, as the next unit.
42137 CALL PrintOneDecimalDigit Call PrintOneDecimalDigit to print this digit.
42140 LD DE,10 Take 0010, ten, as the unit for PrintOneDecimalDigit.
42143 CALL PrintOneDecimalDigit
42146 LD A,L Add 48 to the units left in L, call Print_Character to print the digit, and restore the registers.
42147 ADD A,48
42149 CALL Print_Character
42152 POP DE
42153 POP HL
42154 RET Return.
Prev: 42112 Up: Map Next: 42155