Download presentation
Presentation is loading. Please wait.
1
© 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.Brey: The Intel Microprocessors, 7e Floating-Point
2
© 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.Brey: The Intel Microprocessors, 7e Conversions to Floating-Point 1. Convert the decimal number to binary. 2. Normalize the binary number. 3. Calculate the biased exponent. 4. Store the number in the floating-point format. Step Result 1. 100.25 => 1100100.01 2. 1100100.01 => 1.10010001 2 6 3. 110 + 01111111 => 10000101 4. Sign => 0 Exponent => 10000101 Significand => 10010001000000000000000
3
© 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.Brey: The Intel Microprocessors, 7e 1. Separate the sign-bit, biased exponent, and significand. 2. Convert the biased exponent into a true exponent by subtracting the bias. 3. Write the number as a normalized binary number. 4. Convert it to a de-normalized binary number. 5. Convert the de-normalized binary number to decimal. StepResult 1. Sign => 1 Exponent => 10000011 Significand => 10010010000000000000000 2. 100 = 10000011 – 01111111 3. 1.1001001 x 2 4 4. 11001.001 5. -25.125 Converting from floating-point form
4
© 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.Brey: The Intel Microprocessors, 7e Directives for storing FP Short – single precision (32 bit) Short – single precision (32 bit) Real4 or Define Double (DD), DWORD Real4 or Define Double (DD), DWORD Long – double precision (64 bits) Long – double precision (64 bits) Real8 or define Quadwords (DQ) Real8 or define Quadwords (DQ) Extended – extended precision (80 bits) Extended – extended precision (80 bits) Real10 or Define temporary (DT) Real10 or Define temporary (DT)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.