go to previous page   go to home page   go to next page hear noise

Answer:


1.0

Fitting each of these pieces into their proper fields gives us the full 32 bits:

IEEE representation of one point zero

If the bit pattern is written in hexadecimal it is 0x3F800000. To check that this is correct, use SPIM. Write a program that declares a floating point 1.0, then run SPIM.

## Program to represent 1.0
        .text
        .globl  main
main:
        .data
val:    .float    1.0
## End of file


QUESTION 18:

When you load this program in SPIM, where will the 1.0 be?