Machine-translated by Google. Questions are authored in English.
Top

Discussion

The correct assembly language code in an 8085 microprocessor to move 2500H in H-L pair register is:

  • A.LXI H, 2500H
  • B.MOV H, 2500H
  • C.LXI L, 2500H
  • D.MOV L, 2500H

Answer: A

In the 8085, LXI (load register pair immediate) is the instruction that loads a 16 bit number into a register pair. The instruction LXI H, 2500H puts 25H in the H register and 00H in the L register, so the H-L pair holds 2500H.


MOV copies one 8 bit register into another (or to memory), so it cannot load the 16 bit value 2500H, and MOV H, 2500H is not a valid instruction. LXI L, 2500H is not valid either, because the register pair is named by its first register, H for the H-L pair. The answer is option A.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.