[an error occurred while processing this directive]
|
//
// ** BinToBCD -- the routine converts the binary byte data (< 100) to 2 BCD digits.
//
char BinToBCD(char _byte)
{
char _temp = 0;
while (_byte >= 10)
{
++_temp;
_byte -= 10;
}
return _byte | (_temp<<4);
}