Question { Wipro, 93371 }
What are the different flags in 8085?
Answer
there are five flip-flop in 8085 which individually denote the characteristic if the ALU result.
1.Sign flag(S): S=1, if D7=1; otherwise S=0;
2.Zero flag(Z): Z=1,if A=00H; otherwise Z=0;
3.Auxiliary flag(AC): AC=1, if a carry is generated from the addition of fourth bit from right of a 8-bit binary no. otherwise AC=0;
4.Parity flag(P): P=1, if A has even parity;
P=0, if A has odd parity;
5.Carry flag(CY): CY=1,Carry is generated;
CY=0,Carry is not generated;