Prev: 47722 Up: Map Next: 47742
47732: Print Low Digit
Used by the routine at PrintStatistics.
Prints the lower digit of a byte of a number held in BCD, and goes on to the next byte (see PrintBCDBytes).
Input
B Number of bytes
DE Address of the number
HL Address in the screen buffer
Print the lower digit and move on.
PrintLowDigit 47732 LD A,(DE) Fetch a byte of the number.
47733 AND %00001111 Keep only bits 0 to 3.
47735 CALL PrintCharacter Call PrintCharacter.
47738 INC DE Move on to the next byte.
47739 DJNZ PrintBCDBytes Jump to PrintBCDBytes until all of the bytes have been printed.
47741 RET Return.
Prev: 47722 Up: Map Next: 47742