A couple of utility functions for BCD_int.
More...
A couple of utility functions for BCD_int.
utility
Multiply a pair of BCD bytes.
- Parameters
-
| [in] | ab | The first byte, which gets split into nibbles a and b |
| [in] | cd | The second byte, which gets split into nibbles c and d |
- Returns
- \(100 \cdot a \cdot c + 10 \cdot (a \cdot d + b \cdot c) + b \cdot d\)
Print a BCD_int to the screen.
- Parameters
-
| [in] | x | The BCD_int you'd like to print |
| void print_bcd_ln |
( |
const BCD_int |
x | ) |
|
Print a BCD_int to the screen and append a newline.
- Parameters
-
| [in] | x | The BCD_int you'd like to print |