Hi Eugeniu,
it's not clear to me what you want to do, maybe point 4.17.7. in the manual is what you should have a look at.
4.17.7 DIG
DIG returns the value of a decimal digit. Simply tell it the digit number
(0 - 4 with 0 being the rightmost digit) you would like the value of, and
voila.
B0 = 123 ‘ Set B0 to 123
B1 = B0 DIG 1 ‘ Sets B1 to 2 (digit 1 of
123)
This allows you to separate each digit from the computed result.
But you can also divide the word into two bytes using the .lowbyte and .highbyte modifiers and write them to the display or memory.
HTH
Regards,
Ingo
Bookmarks