FUNCTION BYTE_TO_BCD : BYTE
Converts one byte in binary code in the range of 0..99 into one byte in BCD code
Use BCD_TO_BYTE for the reverse conversion.
InOut:
Scope |
Name |
Type |
Comment |
Return |
BYTE_TO_BCD |
BYTE |
Value in BCD code for the input B |
Input |
B |
BYTE |
Value in binary code |