
1-8
x86 MICROPROCESSORS
When adding the given signed numbers,
+ 125 0111 1101
+ 75 0100 1011
+ 200 1100 1000
There has been an overflow from D6 to D7 (i.e., to the MSB). In this case, we find OF = 1.
The sum is interpreted as a negative number with value of the sign bit = 1.
The setting of the OF flag indicates that the magnitude of the result has caused an
inversion of the sign bit, indicating a mistake. This interpretation is done, because the
maximum range of signed positive numbers is only +127 for 8-bit representation.
Incidentally, the Sign Flag is also set (SF = 1).
Control Flags Besides the conditional flags, there are three ...