Convert a BCD byte or Integer/Word variable to its DECIMAL value.
var1 = MAKEDEC(var2)
var1 Variable that
will be assigned with the converted value.
var2 Variable that holds the BCD value.
When you want to use an I2C clock device which stores its values as BCD
values you can use this function to convert variables from BCD to decimal.
Dim a As Byte
a = 65
a = MakeDEC(a)
LCD " " ; a