Question: Convert the following into MIPS code: [ 1 4 marks ] main ( ) { int q = 7 ; int r = 1 4

Convert the following into MIPS code: [14 marks]
main(){
int q =7;
int r =14;
int s;
if(q >5){
s = quotient(q, r);
q = q * s;
}
else {
z = quotient (q, r);
r = r * s;
}
}
int quotient (int dividend, int divisor){
return dividend / divisor;
}

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!