1. Convert the following C code to MIPS assembly. Use the proper procedure/function calling conventions.
Not using the proper function calling conventions will result in reduced marks.

int check (int a, int b) {

if (a > b)

return (a/2); else

return (b/2); }

int solve (int q, int z, int w) { W check (z 2,q);

return (w + z);

int result=0; //global.data

int array [14] int size= 14; (1,2,3,4,5,6,7,8,9,10,1,2,3,4); //global.data

void main() {

result solve (size, 5,3);

for(int i=0; i < result; i++)

{

array[i] array[i] + array [4]; }

printf("The Value is: %d", array[5]);

return 0;

}