home *** CD-ROM | disk | FTP | other *** search
-
- program NdpInfo; {demo for function NdpTyp}
-
- {$L NDPTYP.OBJ}
- {$F+}
- function NdpType : integer; external;
-
- { Turbo Pascal 4.0 function to check for math coprocessor presence and type
- using Intel recommended techniques. Returns 0 if coprocessor not present,
- 87, 287, or 387 if corresponding coprocessor present.
-
- Reference: Which Math Coprocessor?, Ted Forgeron, PC Tech Journal, Aug 87.
- Adapted for use with Turbo Pascal 4.0 by John Haluska, CIS 74000,1106 }
- {$F-}
-
- begin
- Writeln('Math Coprocessor types are 87, 287, 387; 0 if not present. ');
- Writeln('This Math Coprocessor is: ',NdpType:3);
- end.