CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider a hypothetical processor with a instruction of type LW R1, 20(R2), which during execution reads a 32-bit word from memory and stores it in a 32-bit register R1. The effective address of the memory location is obtained by the addition of a constant 20 and the contents of register R2. Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory?

A
Immediate Addressing
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Base Indexed Addressing
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Register Indirect Scaled Addressing
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Register Addressing
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Base Indexed Addressing
LW R1, 20(R2) Instruction shows the source address can be formed by adding the constant with the R2 content. It is the MIPS instruction. R2 points the base address of an array and 20 points the index address of an array. Hence the addressing mode used for the above is Based Indexed Addressing mode. This addressing mode is used to implement the Arrays.

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Heat Capacity
CHEMISTRY
Watch in App
Join BYJU'S Learning Program
CrossIcon