Assumes $a0 is used for the first argument, $a1 for the seco…
Assumes $a0 is used for the first argument, $a1 for the second argument, if needed, and $v0 for the return value, if needed. Before you call the Max function from the main, please remember that the variable ‘w’ is stored in a memory location with address 5000, so you need to load the values to register a0 and load a1 with a constant 20 which you will be using for comparison before you call the function Max from main. Finally, the results z in main must be stored in memory location 5004. Please convert the following c code into the assembly code. int Max(int x, int y) { if (x > y) { return x; } else { return y; } } … z = Max(w, 20);
Read DetailsFor all the questions try to explain the intermediate steps….
For all the questions try to explain the intermediate steps. Just providing the answer will give you only 1 point for the question. Also even if you do not get the final answer right, showing me the steps will help you to get partial credits, which is more than 1 point. In case you have any questions please write an email or join the Zoom Call. Also please take your time in answering the questions, please donot rush and read them carefully. https://psu.zoom.us/j/99286544346?pwd=N2JyVytZVExJTHJielphUjI1blNhQT09
Read Details