home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / sysv386 / 13483 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  1.3 KB

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