© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Floating-Point
© 2006 Pearson Education, Upper Saddle River, NJ 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 => => => Sign => 0 Exponent => Significand =>
© 2006 Pearson Education, Upper Saddle River, NJ 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 => Significand => = – x Converting from floating-point form
© 2006 Pearson Education, Upper Saddle River, NJ 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)