This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28062: The unexpected result of ADD ACC calculation

Part Number: TMS320F28062

Hi Expert, 

My customer face an issue that the calculation is not correct for disassembly code, they didnot have the C source code and only have lib code. they find there may have something wrong for the below calculation.

ADD  ACC@0x22<<15

Before run the code above, ACC is 0 as below showed. the DP is 0x202, so 0x22 above is corresponding to the address 0x80A2 

By searching the value of address 0x80A2 there show the value is 0xFA6B,

so in theory for the calculation, 

ADD  ACC@0x22<<15

 will be ACC = ACC + 0xFA6B<<15

as ACC is 0, so the result of ACC should be 0x7D358000.

but after running the code, the result is 0xFD358000 instead of 0x7D358000 as below showed. anything wrong for this?

the CCS they use is CCS7.4 compiler is TI V16.9.6 LTS.