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

Discussion

Which of the following represents indexed addressing ?

  • A.MOVC A, @ + DPTR
  • B.AJMP addr.
  • C.SET B 07H
  • D.MOV A, 47H

Answer: A

Indexed addressing is represented by MOVC A, @ + DPTR (MOVC A, @A+DPTR).

In the 8051 the indexed addressing mode forms the address by adding the accumulator to a base register, DPTR or PC. MOVC A,@A+DPTR reads a byte from code memory at that sum, which is how look-up tables are read.

AJMP addr is absolute addressing within a 2 K page. SETB 07H (printed 'SET B') sets a bit at a bit address, which is bit (direct) addressing. MOV A,47H copies from internal RAM address 47H, which is direct addressing.

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

Post your comment

Please log in or register to post a comment.