
THE 8051 MICROCONTROLLER: THE PROGRAMMER’S PERSPECTIVE 19-19
other instructions that directly test the state of this flag and no conditional branching is
associated with this flag.
The Overflow Flag (OV) Bit D2, notated as PSW.2 is the overflow flag. This flag is set
under one of the following conditions:
i) There is an overflow into the MSB (D7) from the bit of lower significance, but no
carry out from the MSB,
ii) There is a carry out from the MSB, but no carry into the MSB.
This flag indicates that the result of a signed number operation is too large, causing
the higher order bit to overflow into the sign bit, thus changing the sign bit.
The Parity ...