Page 1 of 1

(4 pts) 3. Convert the following C-Code into RISC-V assembly program. Assume i and j are in registers 'x3' and 'x4'. Use

Posted: Fri Jul 08, 2022 7:27 am
by answerhappygod
4 Pts 3 Convert The Following C Code Into Risc V Assembly Program Assume I And J Are In Registers X3 And X4 Use 1
4 Pts 3 Convert The Following C Code Into Risc V Assembly Program Assume I And J Are In Registers X3 And X4 Use 1 (22.8 KiB) Viewed 39 times
(4 pts) 3. Convert the following C-Code into RISC-V assembly program. Assume i and j are in registers 'x3' and 'x4'. Use other temporary registers as needed. Also, determine the values in registers 'x3' and 'x4' in the end. int a = 0; int b = 0; int i = 0; int j = 0; int n = = 10; int m = 5; for (a = 0; a <n; a++) { } i=i+1; for (b=0; b<m; b++) { } j=j+l;