DavidEQ 4 Posted August 16, 2011 Share Posted August 16, 2011 There a good way to accumulate a 32 bit unsigned int with another 32 bit unsigned int? Looking at the instruction seet I found ADD(. and ADDC(. Not real sure if that means it only works on bytes or if ADD works for words and ADD(. is for bytes etc. Also not sure how to take a c launge int add pass it to assembler.... Maybe a pointer to the right doc would help. I am sure the following won't work but I think you may be able to tell what I want to do from it. unsigned int phase_acc_high; unsigned int phase_acc_low; unsigned int phase_inc_high; unsigned int phase_inc_low; ADD phase_inc_low, phase_acc_low;// ADD(. src,dst src + dst ? dst ADDC phase_inc_high, phase_acc_high;// ADDC(. src,dst src + dst +c ? dst Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.