Question: Problem 3 (20 points) A is an array of 32-bit integers. Register $20 holds the address of array A. Register $24 holds variable i.
Problem 3 (20 points) A is an array of 32-bit integers. Register $20 holds the address of array A. Register $24 holds variable i. The first few elements of array A in memory are shown in the figure below. i) Give the value for $18 after the following instruction executes: lw $18, 8($20) 3 $18= ii) Give an instruction to store the value in register $9 into A[6]. sw $9,7($20) ii) Give an instruction or sequence of instructions to load the value from A[i+1] into register $8. Iw PC + 4, $(8) $20 > A[0] A[1] A[2] A[3] A[4] A[5] A[6] Memory 7 6 3 1 2 1 4
Step by Step Solution
3.34 Rating (166 Votes )
There are 3 Steps involved in it
This appears to be a question from a computer architecture or assembly language programming exercise involving MIPS instructions Heres how to solve each part of the problem i Give the value for 18 aft... View full answer
Get step-by-step solutions from verified subject matter experts
