Prev: BA6A Up: Map Next: BA7E
BA74: 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 BA74 LD A,(DE) Fetch a byte of the number.
BA75 AND %00001111 Keep only bits 0 to 3.
BA77 CALL PrintCharacter Call PrintCharacter.
BA7A INC DE Move on to the next byte.
BA7B DJNZ PrintBCDBytes Jump to PrintBCDBytes until all of the bytes have been printed.
BA7D RET Return.
Prev: BA6A Up: Map Next: BA7E