'BCD calculation and 8-bit binary to BCD'
I am having problems with my calculations. What are good ways to add
and substract with BCD numbers?
I need to convert an 8-bit binary value into a 3 digit BDC number,
Thanks a lot!
Adi Linden wrote:
> I am having problems with my calculations. What are good ways to add
> and substract with BCD numbers?
> I need to convert an 8-bit binary value into a 3 digit BDC number,
> any suggestions?
Andy's Web page:
Or something a little faster that I posted last October:
SWAPF hex,W ;Input is in 'hex'
lb2 ADDWF tens,F
And if you want to see how this works then check the archives:
More... (looser matching)
- Last day of these posts
- In 1998
, 1999 only
- New search...