StreakPeaked· Practice

ExamsGATETechnical

An input device is interfaced with Intel 8085A microprocessor as memory mapped I/O. The address of the device is 2500H. In order to input data from the device to accumulator, the sequence of instructions will be

  1. LXI H, 2500H MOV A, M
  2. LXI H, 2500H MOV M, A
  3. LHLD 2500H MOV A, M
  4. LHLD 2500H MOV M, A

Correct answer: LXI H, 2500H MOV A, M

Solution

The correct option is right because it correctly loads the address of the input device into the HL register pair using LXI, and then retrieves the data from that memory location into the accumulator with the MOV A, M instruction.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →