-
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
-
- XCHG
INR M - XCHG
INX H - INX D
XCHG - INR M
XCHG
- 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.