EE6373 DSP Architectures

Exploring the Intel 8087

Example #2

See the IEEE Floating Point Value for PI

Change line 1 only to FLDPI (load constant = pi)

-a 100
 FLDPI
 FSTP QWORD [200]
 INT 20

-g                      ; go! run the program

-d 200
The 64-bit value of pi reads 400921FB54442D18

--------------------------------------------------------
CHECK: 400   = exponent = 3FF + 1, meaning 2^1
       92... = mantissa =  .10010010...
    (implied leading 1) = 1.10010010 x 2^1
                        = 11.0010010 
                        = 2 + 1 + 1/8 + 1/64 = 3.140625
--------------------------------------------------------


[ BACK | HOME | NEXT ]

27 JAN 98 tervo@unb.ca
University of New Brunswick
Department of Electrical and Computer Engineering