home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!labtam!eyrie!werple!grs
- From: grs@werple.pub.uu.oz.au (Gary Schmidt)
- Newsgroups: comp.unix.sysv386
- Subject: How can I identify CPU types ??
- Message-ID: <1992Aug23.132857.2097@werple.pub.uu.oz.au>
- Date: 23 Aug 92 13:28:57 GMT
- Followup-To: poster
- Organization: Werple public-access Unix, Melbourne
- Lines: 23
-
- I want to be able to programmatically identify which variation of the Intel
- 80x86 my program is running on, without having to use protected mode
- instructions.
-
- I would like some assemby code that I can assemble for any OS, be it MeSsy-DOS,
- *NIX, PICK, OS/2, ... etcetera, that does not need any high privs to be run,
- and will tell me whether I am on an 8086, 80286, 80386, or an 80486. I really
- want something that will allow me to determine the difference between a '386
- and a '486, not so much whether it's an SX step or not, but whether it is a
- '486.
-
- Please bear in mind that I do not want to switch the processor in and out of
- various modes, and I want the sort of stuff that could be linked into any
- piece of code.
-
- Cheers,
- Gary B-)
-
- --
- ______________________________________________________________________________
-
- Gary R. Schmidt Internet/ACSNet/FishNet: grs@werple.pub.uu.oz.au
- ______________________________________________________________________________
-