Tool/software: TI C/C++ Compiler
Hi,
I am trying to simulate the overflow condition in the controller by performing the 32-bit addition.
As per the documentation, the OVC flag will be set only when the operation is performed in the accumulator.
unsigned int32 var1 = 0xFFFFFFFF
unsigned int32 va2 = var1 + var1;
I am seeing the overflowed result in the var3, but the OVC flag is not set. instead, a Negative flag is set.
This confused me, could you please explain more on when the OVC will be set.