Practice over 1000+ GATE-level questions from this topic!
Designed to match the latest GATE pattern with topic-wise precision, difficulty tagging, and detailed solutions.
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
LXI H, 2500H
MOV A, M
LXI H, 2500H
MOV M, A
LHLD 2500H
MOV A, M
LHLD 2500H
MOV M, A
Memory Mapped I/O are accessed as memory location and to access a memory location, its address must be stored in HL register pair so, the first instruction should be
LXI H, 2500H
Now, the data from this address can be directly moved to accumulator by using the instruction,
MOV A, M