Question: The following MIPS program prints out the following floating point numbers in IEEE single precision format. NaN, infinity, the largest, smallest positive, smallest positive denormal.
The following MIPS program prints out the following floating point numbers in IEEE single precision format. NaN, infinity, the largest, smallest positive, smallest positive denormal. data ZERO: ONE: # Use two words to define the following numbers in the double precision format. LARGEST: POSITIVE MIN: POSITIVE-DENOR-MIN: .word 0x00000001 #denormal min. +1.4E-45 NL: .text l.s $fo, ZERO L.s $f2, ONE div.s Sf12. Sfo. $fo # f12-on-NaN jal printFloat .float 0 .float 1 word 0x7f7fffff word 0x00800000 #-3.4028235E38 asciz An" div.s Sf12. Sf2. $fo # f12 = 2/0-+infinity jal printFloat Ls Sf12, LARGEST jal printFloat I.s Sf12, POSITIVE MIN jal printFloat I.s Sf12, POSITIVE.DENOR MIN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
