2. (40 points) Some architectures support the 'memory indirect' addressing mode. Below is an example. In this case, the register R2 contains a pointer to a pointer. Two memory accesses are required to load the data. ADD R3, @(R2) The MIPS CPU doesn't support this addressing mode. Write a MIPS code that's equivalent to the instruction above. The pointer-to-pointer is in register $t1. The other data is in register $t4.
Added by Juan Manuel J.
Close
Step 1
Load the data from register St4 into register R2. Show more…
Show all steps
Your feedback will help us improve your experience
Sri K and 101 other Physics 102 Electricity and Magnetism educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
4.1 Consider the following instruction: Instruction: AND Rd, Rs, Rt Interpretation: Reg[Rd] = Reg[Rs] AND Reg[Rt] 4.1.1 [5] <COD §4.1> What are the values of control signals generated by the control in COD Figure 4.2 (The basic implementation of the MIPS subset...) for the above instruction?
Akash M.
Consider a hypothetical processor with an instruction of type LW $R_{1}, 40\left(R_{2}\right)\left(R_{3}\right)$. Which during execution reads a 16 -bit word from memory and stores it in a 16 -bit register $R_{1} .$ The effective address of the memory location is obtained by the addition of constant 40 , contents of $R_{2}$ and $R_{3}$ registers. Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory? (A) Immediate addressing (B) Register addressing (C) Register indirect scaled addressing (D) Base with index and displacement addressing
Computer Organization and Architecture
Machine Instructions, Addressing Modes
A two word instruction is stored in memory at an address designated by symbol W. The address field of the instruction (stored at W+1) is designated by symbol Y. The operand used during the execution of the instruction is stored at an address symbolized by Z. An index register contains the value X. State how Z calculated from other addresses if the addressing mode is the instruction is
Alex L.
Recommended Textbooks
University Physics with Modern Physics
Physics: Principles with Applications
Fundamentals of Physics
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD