Answer: B
To find the value stored in R3, we first decode the IEEE-754 single-precision floating-point values in R1 and R2.
1. Decoding R1=0x42200000:
- Binary representation: 0100 0010 0010 0000 0000 0000 0000 00002
- Sign bit (S) = 0 (positive)
- Biased Exponent (E) = 1000 01002=13210
- Actual Exponent (e) = 132−127=5
- Mantissa (M) = 1.012=1.2510
- Value of R1=+1.25×25=40
2. Decoding R2=0xC1200000:
- Binary representation: 1100 0001 0010 0000 0000 0000 0000 00002
- Sign bit (S) = 1 (negative)
- Biased Exponent (E) = 1000 00102=13010
- Actual Exponent (e) = 130−127=3
- Mantissa (M) = 1.012=1.2510
- Value of R2=−1.25×23=−10
3. Calculating R3=R2R1:
R3=−1040=−4
4. Encoding −4 into IEEE-754 format:
- −4=−1.0×22
- Sign bit (S) = 1
- Actual Exponent (e) = 2⟹ Biased Exponent (E) = 2+127=12910=1000 00012
- Fraction (F) = 000…02
- Combined Binary: 1100 0000 1000 0000 0000 0000 0000 00002
- Hexadecimal representation: 0xC0800000