Question: Number 15. For the tasks shown below, write the RISC V code down. * Assume the machine is 64-bit, and that the Base address of
Number 15.
For the tasks shown below, write the RISC V code down.
*Assume the machine is 64-bit, and that the Base address of array A is in x25, B in x26 and C in x27
A. Load Register x3 with content of A[256]
B. Store contents of Register x3 into A[1024]
C. Add contents of register x3 and x10 and place the result in register x5
D. Copy contents at one memory location to another: C[g] = A[i-64j+16]
E. In RISC V implement these line of code in C:
(i) f = g - A[B[C[256]]]
(ii) f = g - A[C[8] - B[16]]
(iii) A[i] = 16B[2i-21] + 32C[2i+2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
