Write a MIPS code for the following C program to run perfectly in Qtspim???
Void main () {
Int array[10];
For (i=0; i<10; i++)
{ array[i]=compare(num, i);}
}
Int compare (int a, int b) {
If (sub(a, b,) >=0 )
return 1;
else
return 0;
}
Int sub ( int a, int b) {
return a-b;
}