50%
50%
A single-precsion floating-point value for the MIPS processor is
encoded in the IEEE-compliant format illustrated below (the LSB
is on the right). Given this encoding, using only MIPS
integer instructions, write a function that will
compute the absolute value of a floating-point number, i.e.,
x=abs(y);. Hints: use the fact that negative and
positive float values differ only in the Sign bit, and test your
routine using SPIM before you submit it.
