Question: Answer the question using RISC-V Q5 (20%) We have an int (32 bits) array named arr1. The pointer of arr1's first element stored in register

 Answer the question using RISC-V Q5 (20%) We have an int

Answer the question using RISC-V

Q5 (20%) We have an int (32 bits) array named arr1. The pointer of arr1's first element stored in register a2. We also have the registers t1=0AAAAAAAA,t2= 0xFEDCBA 98 Please answer the following questions: 1. For the register values shown above, what is the value of t3 for the following sequence of instructions? (5\%) sllit3,t1,srlit3,t3,44 1 2. What is the value of t3 for the following sequence of instructions? (5%) sllit3,t2,3srait3,t3,3 3. Write a piece of assembly program to: (10%) - Store the result of t1&t2 to register t4;(3%) - Store t4 to the first element of arr1;(3%) - Store the lowest 8 bits of t4 to the second element of arr1. (4\%)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!