Write a MIPS assembly program to do 32-bit FP division by repeated multiplication. Test for all error condition. Result must be IEEE compliant.
The division function should be written as a callable function using C protocol for activation records on the stack.
SPIM or XSPIM simulator will be used. A tutorial of XSPIM can be found in the CD of the textbook.
A tutorial of PCSPIM can be found at http://ouray.cudenver.edu/~dl0hoshi/4591/spimtutorial.html
Two MIPS assembly program examples:
http://www.cs.ucr.edu/~yluo/cs161L/labs/hello.s
http://www.cs.ucr.edu/~yluo/cs161L/labs/fp.s
Lecture notes:
Reference:
IEEE-754 Floating Point Conversion from Floating Point to Hexadecimal