| delorie.com/archives/browse.cgi | search |
| Message-ID: | <35C82228.DDAFF97A@post.comstar.ru> |
| Date: | Wed, 05 Aug 1998 13:13:12 +0400 |
| From: | Dim Zegebart <zager AT post DOT comstar DOT ru> |
| Reply-To: | zager AT post DOT comstar DOT ru |
| Organization: | Comstar Ltd. |
| MIME-Version: | 1.0 |
| To: | Nate Eldredge <nate AT cartsys DOT com> |
| CC: | Jeff Williams <jeffw AT darwin DOT sfbr DOT org>, djgpp AT delorie DOT com |
| Subject: | Re: 80x87 detection in DJGPP programs |
| References: | <199808041419 DOT JAA10555 AT kendall.> <35C74A9B DOT BE7C0A06 AT cartsys DOT com> |
char c;
outportb(0x70h,0x14h);
c=inportb(0x71h);
if (c&0x01) printf("FPU present\n");
else printf("FPU absent\n");
--
Dim Zegebart
Moscow, Russia
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |