Oct 12, 2004 #1 T tom12sg Member level 2 Joined Feb 1, 2004 Messages 45 Helped 4 Reputation 8 Reaction score 4 Trophy points 1,288 Activity points 422 Hi, Anyone has done addition of packed BCD digits? Any routine to share. say: A=678156 (packed in three bytes) B=034521 (packed in three bytes) result sum in packed BCD too. Can I do the addition straight without the need to convert into binary first? Regards, Tom
Hi, Anyone has done addition of packed BCD digits? Any routine to share. say: A=678156 (packed in three bytes) B=034521 (packed in three bytes) result sum in packed BCD too. Can I do the addition straight without the need to convert into binary first? Regards, Tom
Oct 12, 2004 #2 Regnum Full Member level 5 Joined Jun 17, 2004 Messages 262 Helped 18 Reputation 36 Reaction score 7 Trophy points 1,298 Location Hurlingham Activity points 2,168 Re: packed BCD addition tom12sg said: Hi, Anyone has done addition of packed BCD digits? .... Can I do the addition straight without the need to convert into binary first? Click to expand... ...of course you may! https://www.cs.uiowa.edu/~jones/bcd/bcd.html
Re: packed BCD addition tom12sg said: Hi, Anyone has done addition of packed BCD digits? .... Can I do the addition straight without the need to convert into binary first? Click to expand... ...of course you may! https://www.cs.uiowa.edu/~jones/bcd/bcd.html