Question: Write a MIPS program that will handle calculating mini float addition for two numbers using the rules discussed in class and storing each of the

Write a MIPS program that will handle calculating mini float addition for two numbers using the rules discussed in class and storing each of the parts as a binary integer.

To do this, each 'mini float' number will need to be represented ( suggest hardcoded) as one register for the sign, one for the exponent part, one for the 'significand'(which you then convert to the fraction part). Hard coding means here that you don't need to read in the 6 parts as user input, just have something like

li $s0, 0

li $s1, 12

li $s2, 5

which is equivalent to a minifloat of 0 1101 101 = 1.101 * 2^(12-7) = 1.101*2^5

This means the program will be work with at least 6 registers as variables.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!