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. Run your program using MARS. Consider -129 and 56 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
