Home » 8085 Microprocessor » 8085 microprocessor miscellaneous » Question

8085 microprocessor miscellaneous

8085 Microprocessor

  1. In an 8085 A microprocessor based system, it is desired to increment the contents of memory location whose address is available in (D,E) register pair and store the result in same location. The sequence of instructions is


    1. XCHG
      INR M
    2. XCHG
      INX H
    3. INX D
      XCHG
    4. INR M
      XCHG
Correct Option: A

The address of the memory location is stored in DE register pair. But INR M command will increase the content of the memory location M. But this command will execute only on HL pair. So we have to exchange the address of Memory location in HL pair from DE pair first.



Your comments will be displayed only after manual approval.