Home TechnologyComputersProcessors Subscribe to RSS

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

Answer Question

2 Answers - Sort by: Date | Rating

    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
    0 0

    Thinking 

    answered 3 years ago

      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
      0 0

      Yogarajang 

      answered 2 years ago

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International