Which Instruction Is Used To See The Contents Of The Flag Register In 8085 Microprocessor?

2

2 Answers

Patrick Caron Profile
Patrick Caron answered
One would normally use a conditional branching instruction such as (JNZ, JPE, CNC, CP, RPE etc...) that will execute according to the flags. As for reading the content as if it was a memory location or an accumulator register, I don't think it's possible with an 8085 but I could be wrong...it's been a while since I played with those :P
Yogarajan G Profile
Yogarajan G answered
We can't do it with a single instruction
A set of statements can do this and it is given below
For a simple addition program

LXI SP,8500H
MVI A,F0H
MVI B,10H
ADD B
PUSH PSW
POP HL
SHLD 8600H
HLT

Answer Question

Anonymous