Professional Documents
Culture Documents
Micro (2) - 9 The Math Coprocessor Part-1 29-3-2024
Micro (2) - 9 The Math Coprocessor Part-1 29-3-2024
QUIZ
1) Give 2-examples for each of the following:
A. New instructions not found in 8086.
B. 386-developed registers.
C. 64-bit Pentium developed registers.
D. 386-New registers.
E. 64-bit Pentium registers.
1
3/25/2024
Part1
Introduction
Data Format
3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor 3
2
3/25/2024
3
3/25/2024
DATA FORMATS
16-bit (word )
-32,768 to +32,767
Sign Bit −2,147,438,648
32-bit
(doubleword)
±2 ×109
64-bit
Sign Bit
(quadword integer)
±9 ×1018 3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor 8
4
3/25/2024
Bit
(BCD) (80-bits)
Bit
➢ An
3/25/2024
example of a scientific notation binary is: Class Microprocessor
1
0
10
5
3/25/2024
Mantissa or Significand
3/25/2024 1
Dr. Mazin H. Aziz 2nd-Class Microprocessor 1
11
➢ Comparison between the Single Precision (32-bit) and the Double Precision
(64-bit).
BIASED NORMALISED
TYPES SIGN BIAS
EXPONENT MANTISA
12
6
3/25/2024
➢ 32 Bit Single
Precision Floating
Point Format.
➢ 64 Bit Double
Precision Floating
Point Format.
➢ 80 Bit Extended
Precision Floating
Dr. Mazin H. Aziz 2nd-Class
Point Format. 3/25/2024
Microprocessor
13
13
14
7
3/25/2024
1 10000001 00011010000000000000000
1100 0000 1000 1101 0000 0000 0000 0000 = C08D0000h 15
3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor
15
1 10000000001
000110100000000000000000000000000000000000000000000016
3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor
16
8
3/25/2024
17
0 10000000101
010101001000000000000000000000000000000000000000000018
3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor
18
9
3/25/2024
19
0 01111111110
100000000000000000000000000000000000000000000000000020
3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor
20
10
3/25/2024
2) Convert the biased exponent into a true exponent by subtracting the bias.
true exponent= biased exponent – 127 = 1000 0000 – 0111 1111 = 1
3) Write the number as a normalized binary number.
normalized binary number = (-1)S X 1.mantissa X 2 true exponent = -1 X 1.01 X 21
= -1.01 X 21
4) Convert it to a fixed-point binary form. -1.01 X 21 = -10.1
3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor 21
21
22
11
3/25/2024
2) Convert the biased exponent into a true exponent by subtracting the bias.
true exponent= biased exponent – 127 = 1000 0010 – 0111 1111 = 3
3) Write the number as a normalized binary number.
normalized binary number = (-1)S X 1.mantissa X 2 true exponent = 1 X 1.01 X 23
= 1.01 X 23
4) Convert it to a fixed-point binary number. 1.01 X 23 = 1010.0
3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor 23
23
24
12
3/25/2024
HOMEWORK-1
1. Find the scientific floating-point binary in both single precision
and double precision forms for the following decimal numbers.
A. 17.75
B. - 25.125
C. 130.5
D. 260.25
25
HOMEWORK-1
2. Convert the following single precision scientific floating-point
binary numbers to decimal.
A. 1 1010 0110 0110 0000 0000 0000 0000 000
B. 1 1010 0101 0110 1000 0000 0000 0000 000
C. 0 1001 0110 0110 0100 0000 0000 0000 000
D. 0 1000 1110 0111 1000 0000 0000 0000 000
26
13
3/25/2024
THE END
3/25/2024 Dr. Mazin H. Aziz 2nd-Class Microprocessor 27
27
14