Mark, For usage of BCD in computation, your should look at this site by an IBM fellow:
http://www2.hursley.ibm.com/decimal/ You should also grab a copy of the source code for the package. Currently I am trying to implement a pre-/post-payment power meter utilising MSP430, maybe some other people can help in implementing the four basic math functions - add, subtract, divide & multiply - in BCD... :) Regards, KF ----- Original Message ----- From: "Mark Stokes" <[email protected]> To: <[email protected]> Sent: Tuesday, June 10, 2003 23:13 Subject: RE: [Mspgcc-users] FAQ | Fortunately, I don't need anything but add for my bcd variables. And I | too only really use them for display purposes. Makes the lookup work | really fast. | I do use BCD for a couple of my actual counters (ie primary | instrumentation values) that if they were the only thing going on, the | battery would probably last for a decade (since there would be nothing | but dadd and display every so often). But alas, I have found the need | to use floating point since one of my display's is based on time and | would be very slow if kept in the bcd realm (not slow to process, slow | to measure). | -Mark
