Question: Convert the following C statements into equivalent MIPS assembly language: a = 0; b = 0; for (b = 50; b > 5; b--) {
Convert the following C statements into equivalent MIPS assembly language:
a = 0;
b = 0;
for (b = 50; b > 5; b--)
{
b = a - 1;
D[4] = b + 100;
x = 6 - C[i];
}
Assume that the variables a, b, and i are assigned to registers $s0, $s1 and $s2 and the base address of arrays C and D are stored in registers $s6 and $s7 respectively.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
