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

Discussion

Identify the addressing modes of below instructions and match them :

(a) ADI(1) Immediate addressing
(b) STA(2) Direct addressing
(c) CMA(3) Implied addressing
(d) SUB(4) Register addressing

  • A.a - 1, b - 2, c - 3, d - 4
  • B.a - 2, b - 1, c - 4, d - 3
  • C.a - 3, b - 2, c - 1, d - 4
  • D.a - 4, b - 3, c - 2, d - 1

Answer: A

In the 8085 instruction set, ADI adds an immediate byte to the accumulator, so it uses immediate addressing (1). STA stores the accumulator at a given memory address, which is direct addressing (2). CMA complements the accumulator and names no operand, so it uses implied addressing (3), and SUB subtracts a register from the accumulator, which is register addressing (4). So the match is a-1, b-2, c-3, d-4, option (A). The other options give STA or CMA the wrong mode.

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

Post your comment

Please log in or register to post a comment.