Translate the following C function abs() intc MIPS assembly procedure. You must
ID: 3678101 • Letter: T
Question
Translate the following C function abs() intc MIPS assembly procedure. You must minimize the number of registers used by your MIPS procedure: use the $s0 register to ho d any temporary values for the computation performed by the MIPS procedure. You must use the stack to save and restore the contents of any cpu registers that may be used by the called in compliance with the established MIPS conventions. You must also follow MIPS register use conventions to pass and receive arguments and return values. You may not use pseudo-instructions for this assignment. Comment the MIPS assembly code generously to explain its functionality clearly.Explanation / Answer
end abs: