4.4 The Overflow flag

In a subtraction, the sign of the result makes no sense when:

Since the MSb is the sign bit, we can define

O = xn-1yn-1dn-1 + xn-1yn-1dn-1

In this equation, y is subtracted from x, and d is the result of the subtraction.