Question: Write a MIPS-32 function myABS that accepts an integer in register $a0 and returns its absolute value in $v0. Also write a complete program that
Write a MIPS-32 function myABS that accepts an integer in register $a0 and returns its absolute value in $v0. Also write a complete program that calls the function myABS twice, to test its operation and displays the results on the console. Use -45 and 234 to test your function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
