Consider three registers R1, R2, and R3 that store numbers in IEEE-754 single precision floating point format. Assume that R1 and R2 contain the values (in hexadecimal notation) 0x42200000 and 0xC1200000, respectively.
If , what is the value stored in R3?
A.
0x40800000
B.
0xC0800000
C.
0x83400000
D.
0xC8500000
Solution:
In IEEE single precision format:
Sign bit : 1 bit
Exponent: 8 bits
Mantissa: 23 bits
Exponent = 132
E2 = 130
Since :
R3 = 1100 0000 1000 0000 0000 0000 0000 0000
R3 = 0 × C0800000