MICROPROCESSOR AND MICROCONTROLLER

8051 MICROCONTROLLER

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of the following comes under the indexed addressing mode?
A
MOVX A, @DPTR
B
MOVC @A+DPTR, A
C
MOV A, R0
D
MOV @R0, A
Explanation: 

Detailed explanation-1: -It is a move instruction that moves the contents of the accumulator into the memory location pointed by the R0 register. Therefore, the correct answer is option B, MOVC A DPTR, A.

Detailed explanation-2: -indexed addressing (indexing) A method of generating an effective address that modifies the specified address given in the instruction by the contents of a specified index register. The modification is usually that of addition of the contents of the index register to the specified address.

Detailed explanation-3: -In index addressing mode, contents of Index register is added to address part of instruction to obtain effective address. The address part of instruction holds the beginning/base address and is called as base. The index register hold the index value, which is +ve.

Detailed explanation-4: -2) Index Mode Index Mode is used to access an array whose elements are in successive memory locations. The content of the instruction code, represents the starting address of the array and the value of the index register, and the index value of the current element.

There is 1 question to complete.