Optimized binary to BCD Conversion
Mike Keitz email (remove spam text)
On Mon, 6 Sep 1999 15:42:10 -0400 Jason Sachs <DEKARESEARCH.COM> jsachs
> I've got a routine that converts 16- and 24-bit binary
> to packed BCD, based on Mike Keitz's "b2bcd" posted
> here last year. (msg forwarded at end)
I see you've alrady found my entry. I like the BCD multiply by 2 method
especially as the numbers get larger. It is probably the best for speed.
Methods based on division may save space if you already have a division
routine in the program for some other purpose and can reuse it.
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: dl.http://www.juno.com/dynoget/tagj.
See also: www.piclist.com/techref/index.htm?key=optimized+binary
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the