If you add two positive numbers and get a negative result (MSB=1), that is an overflow condition. Similarly, if you add two negative numbers and get a positive result (MSB=0), that is an overflow. (If you add a positive number and a negative number, you cannot get an overflow condition.)
There's a fairly good explanation here:
http://teaching.idallen.com/cst8214/08w ... erflow.txt When designing hardware, the "method 2" is normally used -- comparing the carry
into bit 7 with the carry
out of bit 7. When writing software, you don't have access to that internal carry bit, so you have to use his "method 1" -- examining the signs of the two operands, and the sign of the result.
_________________
Because there are never enough Forth implementations:
http://www.camelforth.com