AnsweredAssumed Answered

Accessing the 218x 40-bit accumulator in C

Question asked by sketkar on Jul 9, 2009
Latest reply on Aug 12, 2009 by Mitesh

Hello,

 

I'm trying to translate the following math operating from assembly to C.  Its a multiply and add instruction

 

    mr = mr + mx0 * my0 (SS)

 

this instruction is in a loop and mr is accumulated across a data set.

 

finally this result is moved

 

dm(_ch1_sin) = mr2;

dm(_ch1_sin+1) = mr1;

dm(_ch1_sin+2) = mr0;

 

so I'm guessing that mr0, mr1 and mr2 are 8-bits each containing the contents of mr (actually 40-bits)

 

I was looking at some of the fraction arithmetic or ESTI functions but none of them seem to make the 40-bit accum available.

 

any ideas?

 

Thanks,

Outcomes