In 8085, which of the following performs : load register pair immediate…

2017

In 8085, which of the following performs : load register pair immediate operation ?

  1. A.

    LDAX rp

  2. B.

    LHLD addr

  3. C.

    LXI rp, data

  4. D.

    INX rp

Attempted by 524 students.

Show answer & explanation

Correct answer: C

Answer: LXI rp, data

Reason:

  • LXI rp, data: loads a 16-bit immediate value into the specified register pair (BC, DE, HL, or SP). The two data bytes follow the opcode and are placed into the pair.

  • Example: LXI H, 0x1234 loads 0x34 into L and 0x12 into H (immediate bytes follow the opcode).

  • Why the others are incorrect

  • LDAX rp: reads memory addressed by the register pair into the accumulator (memory -> A), not a load of a register pair with immediate data.

  • LHLD addr: loads H and L from two memory bytes at the specified address (memory -> HL). This is a direct memory read into HL, not loading immediate data embedded in the instruction.

  • INX rp: increments the register pair by one (rp = rp + 1). It modifies the pair arithmetically and does not load immediate data.

Explore the full course: Mppsc Assistant Professor