Question: Make an assembly program that shows the Nan divide the Greatest Number by 0 Print the result of division Elaborate on the numbers on the

Make an assembly program that shows the Nan
divide the Greatest Number by 0
Print the result of division
Elaborate on the numbers on the register $f9
and $t0 based on the IEEE 754 format
Is this Nan? why?
.text
.globl main
main:
li $v0,2 # print floating service code
li $t0,0
mtc1 $t0, $f2 # $t0=0;
cvt.s.w $f4, $f2
div.s $f9, $f4, $f4 # Largest Number /0
li $v0,2
mfc1 $t0, $f9
mov.s $f12, $f9
syscallMake an assembly program that shows the Nan
divide the Greatest Number by 0
Lab 6
Check out the floating numbers in
QtSpim
Show the program result as a screen shot
and
Elaborate on the register value with IEEE
754 format
Print the result of division
Elaborate on the numbers on the register $ $99
and $t0 based on the IEEE 754 format
Is this Nan? why?
.text
.globl main
main:
li $v0,2 # print floating service code
li $ to,0
mtc1 $t0, $f2,$ to =0;
cvt.s.w $f4, $f2
div.s $f9, $f4, $f4 # Largest Number /0
li $v0,2
mfc1 $t0, $f9
mov.s $f12, $f9
syscall
 Make an assembly program that shows the Nan divide the Greatest

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!