- 6 25 Pts Write The Following Code In Mips 0 Prod While J 10 Sum 1 J 1 If A J 0 Or Sum Prod Els 1 (340.02 KiB) Viewed 37 times
6. (25 pts) Write the following code in MIPS. 0; prod while (j<=10) { sum = } 1; j=1; if (A[j] >= 0 or sum < prod) { Els
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
6. (25 pts) Write the following code in MIPS. 0; prod while (j<=10) { sum = } 1; j=1; if (A[j] >= 0 or sum < prod) { Els
6. (25 pts) Write the following code in MIPS. 0; prod while (j<=10) { sum = } 1; j=1; if (A[j] >= 0 or sum < prod) { Else { } A[j] j=j+1; = sum sum - 32; prod = prod + 4; -( A[j+1] + A[j-1]); Assume all data are integers. The array A's starting address is stored in $50, sum stored in $t0, prod in $t1, and j in $t2.