MIPS ASSEMBLY: Finding Average
Write a program that calls a procedure to calculate the averageof two values. Initialize the two values to be averaged in main.Pass these two values as parameters on the stack to the averageprocedure.
-Load immediate values for num1 and num2 into save registers$s0, $s1 respectively.
-Create a procedure to calculate the average of the two values.Store the average result in the temporary register $t0.
-Use the stack to pass the values obtained in main to theprocedure.
-Use the stack to return the result generated in the procedureback to main.
-Use the test values 30 and 6for your test run.
-Be sure to create
PayPal Gateway not configured
PayPal Gateway not configured