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 R3=R1R2, what is the value stored in R3?

A.

0x40800000

B.

0xC0800000

C.

0x83400000

D.

0xC8500000

Solution:

 R_{1}=0 \times 42200000 \\ R_{2}=0 \times C 1200000 \quad R_{3}=\frac{R_{1}}{R_{2}}

In IEEE single precision format:

Sign bit : 1 bit

Exponent: 8 bits

Mantissa: 23 bits

Exponent (E_1) = 132

E2 = 130

Since :

R3=R1R2

R3 = 1100 0000 1000 0000 0000 0000 0000 0000

R3 = 0 × C0800000