Question: Question 1. (30 points) Translate the non-leaf function below to MIPS assembler. Fill in the table (with respect to the scope of doit()) below of
Question 1. (30 points) Translate the non-leaf function below to MIPS assembler. Fill in the table (with respect to the scope of doit()) below of where your variables are. Make sure you intersperse the original code in your MIPS code so it is easy to follow. Please do not save or restore un-necessarily Hint:usernum must be on the stack in order to pass its address to InputDialogInt). int doit(char *prompt, int i, int j, int k, char c) int temp, usernum temp xyz(i,j,k,c) InputDialogInt (prompt, &usernum) ; temp munge(temp,usernum)i if (temp0) return usernum else return temp; registers $a0 $al ?a2 Sa3 varlables home locations prompt none temp $s0 usernum none
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
