- Convert the following decimal values into their corresponding binary
values.
Ex: 3.625 (ten) = 11.101 (two)
Normalize each of the binary representations above, allowing only 6
binary digits to the right of the binary point. Note if any digits are lost
in the normalization.
Write an MIPS assembly language program that prompts the user for a
value representing the diameter of a circle. If the value is <0, print an
error message and terminate. If the value >=0, compute the area using
single-precision floating-point arithmetic, and print the resulting area.
Write and call procedures to prompt the user and output the error message or
result, similar to the procedures that exist in the syscalls.asm
sample code. A procedure named promptUser should prompt the user for
the diameter and return that value in $v0. A procedure named printError
should print the error message. A procedure named printArea should
print out the computed area (supplied as an argument in $a0). Comment and
format your code appropriately; use the sample code as a reference for
proper formatting.