MICROPROCESSOR AND MICROCONTROLLER

ASSEMBLY LANGUAGE PROGRAMMING

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which type of addressing is being used by the code statement below?ADD R2, R1, #200
A
Immediate
B
Direct
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Indirect Mode: The processor will read the register content (R1) in this case, which will not have direct value. Instead, it will be the address or location in which, the value will be stored.

Detailed explanation-2: -e.g. (b) LDR R0, [R1, R2]! This is a post-index addressing. This instruction will load register R0 with the word at memory address given in register R1. It will then calculate the new address by adding the value in register R2 to register R1 and Place this new address in R1.

Detailed explanation-3: -Load R3, R2 So, the instruction above uses register addressing mode to describe the address of the operand. Below, we have a figure showing the Add instruction in the example above. Advantage: In the register addressing mode there are no memory references as the value to be operated is present in the register.

There is 1 question to complete.