PROGRAM STATUS WORD
(PSW)
By:- Sheetal Verma
 Program status word refers to the accumulator and
the flag register where accumulator is the high order
register and the flag register is the lower order
register.
 PSW is a 8 bit register.
 PSW will be in 8085 microprocessor and 8051
microcontroller.
Different Flags in PSW
Carry Flag
This flag is set whenever there has been a carry out of, or a borrow into, the
higher order bit of the result (8 bit).
Parity Flag
This flag is set when the result has even parity, an even number of 1 bit.
Auxiliary Flag
This flag is set, whenever there has been a carry out of the lower nibble into
the higher nibble or a borrow from higher nibble into the lower nibble of an 8
bit quantity, else AF is reset.
Zero Flag
This flag is set, when the result of the operation is zero else it is reset.
Sign Flag
This flag is set, when the MSB(most significant bit) of the result is 1.
program status word
program status word

program status word

  • 1.
  • 2.
     Program statusword refers to the accumulator and the flag register where accumulator is the high order register and the flag register is the lower order register.  PSW is a 8 bit register.  PSW will be in 8085 microprocessor and 8051 microcontroller.
  • 4.
    Different Flags inPSW Carry Flag This flag is set whenever there has been a carry out of, or a borrow into, the higher order bit of the result (8 bit). Parity Flag This flag is set when the result has even parity, an even number of 1 bit.
  • 5.
    Auxiliary Flag This flagis set, whenever there has been a carry out of the lower nibble into the higher nibble or a borrow from higher nibble into the lower nibble of an 8 bit quantity, else AF is reset. Zero Flag This flag is set, when the result of the operation is zero else it is reset. Sign Flag This flag is set, when the MSB(most significant bit) of the result is 1.