I am currently working on a calculator project using the PIC16F84 and I need help with the overflow error detection when adding two 16 bit numbers
Also I am facing problems with the multiplying of two 16 bit numbers
Printable View
I am currently working on a calculator project using the PIC16F84 and I need help with the overflow error detection when adding two 16 bit numbers
Also I am facing problems with the multiplying of two 16 bit numbers
To determine if the addition has overflowed... If the result is smaller than either of the original numbers, then it overflowed.What problem are you having with Multiplying???Code:V1 VAR WORD
V2 VAR WORD
Result VAR WORD
Result = V1 + V2
if Result < V1 then OverFlowed
Darrel