> Or some such. (How do I deal w/ the carry bit?)
you should do some voodoo to save/restore carry bit.
however, if you heed wider bcd numbers, (say 8 decimal digits)
declare vars as 'long' (or unsigned long - shift operations will be faster)
then:
asm volatile(
"dadd %A1, %A0\n\t"
"dadd %B1, %B0"
: "=r" (a)
: "r" (b)
);
If you want them 16 digited, declare as 'long long'.
For more inline assembly read docs in msp430-libc/doc
~d
--
/********************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys
(_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314
********************************************************************/