The Conditional Flag:-


There are six conditional flag.

  1. The Parity Flag(PF)
  2. The Zero Flag(ZF)
  3. The Sign Flag(SF)
  4. The Auxiliary Flag(AF)
  5. The Carry Flag(CF)
  6. The Overflow Flag(OF) 



1.The Parity Flag(PF)-If the no of 1's is even in the output stored in the accumulator then it is set otherwise it is reset for the odd.

2. The Zero Flag(ZF)-If the result stored in an accumulator is zero then this flip flop is set otherwise it is reset.

3.The Sign Flag(SF)- If D7 of the result is 1 then sign flag is set otherwise reset. As we know that a number on the D7 always desides the sign of the number.


if D7 is 1: the number is negative.
if D7 is 0: the number is positive.

4. The Auxiliary Flag(AF)-If any carry goes from D3 to D4 in the output then it is set otherwise it is reset.

5. The Carry Flag(CF)-If the result stored in an accumulator generates a carry in its final output then it is set otherwise it is reset.


6.The Overflow Flag(OF)- If a carry goes from D6 to D7 then OF is set otherwise it is reset.

{ 2 comments... read them below or Comment }

Labels

- Copyright © 8085 Microprocessor -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -