gbradley
Lifetime Supporting Member
Is there a way to test two numbers before you do the ADD to make sure that the sum is below 32767?
If I add two integers together and the result is greater than 32767 I believe the processor faults.
I was thinking of dividing each individual source by two, and then adding them up and then testing the Sum of those to see if it is less than 16384, if so, then go ahead do the add.
If I add two integers together and the result is greater than 32767 I believe the processor faults.
I was thinking of dividing each individual source by two, and then adding them up and then testing the Sum of those to see if it is less than 16384, if so, then go ahead do the add.