Intel 386 Computer Hardware User Manual


 
COPROCESSOR
.HARDWARE
INTERFACE
606b/a7/6MlSb
MACRO
ASSEMBLER
LOC
OBJ
001F
'BD'Ea
0022 'BD'EE
0025 'BDEF'
0026 'BD'C0
002B
'BD'E0
002E
'BDED'
0031
'BDD3C
003~ 6B0~
003b
'E
0037
7~0b
003'
EB07'0
003C
003C
EB0~'0
003F
003F
EB01'0
00~2
00~2
LINE
~,
50
51
52
53
5~
55
5b
57
56
5'
b0
b1
b2
b3
b~
b5
bb
b7
b6
b'
70
71
72
73
7~
75
76
77
76
7'
a0
a1
ASSEMBLY
COMPLETE,
NO
ERRORS
FOUND
Test for presence of a
Numerics
Chip, Revision
1.0
PAGE
2
SOURCE
fld1
fldz
fdiv
fld
st
fchs
fcompp
fstsw
{sO·
lIIav
ax,[siJ
sahf
je
found_a7_2a7
Must
use default control
word
froIR
FNINIT
Form
infinity
,
6067/267
says.
inf
=
-inf
Form
negative
infinity
i387
SX/DX
NPX
says
.inf
<>
-inf
See
if
they are the
salle
and
reRlQve
them
Look
at
status
from
FCOMPP
See
if
the
infinities
matched
Jump
if
a0a7l287
is
present
An
i367
SX/DX
NPX
is
present',
If
denormal
exceptions are
used
for
an
6B.!.71267,
they
must
be
masked.
The
i367
SX/DX
NPX
will
automatically normalize
denormal
operands
faster
than
an
exception
handler can·
jmp
found_3a7
SLDX
set
up
f or
no
NPX
jmp
exi t
found_8L287:
set
up
for
8712a7
jllP
exit
found-3a7 :
set
up
for
367
SLDX
~xit:
code
ends
end
start
I ds:
dgroup
I
ss:
dgroup:
~st
Figure
5-3.
Software
Routine
to
Recognize
the Coprocessor
(Contd.)
5-8