home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / lang / asm / 472 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.4 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!diku!terra
  2. From: terra@diku.dk (Morten Welinder)
  3. Newsgroups: alt.lang.asm
  4. Subject: Re: Identifying Processors
  5. Message-ID: <1992Nov23.122703.12623@odin.diku.dk>
  6. Date: 23 Nov 92 12:27:03 GMT
  7. References: <98.749.uupcb@freddy.ersys.edmonton.ab.ca>
  8. Sender: terra@rimfaxe.diku.dk
  9. Organization: Department of Computer Science, U of Copenhagen
  10. Lines: 26
  11.  
  12. denis.giroux@freddy.ersys.edmonton.ab.ca (Denis Giroux)  writes:
  13.  
  14. >TO: all
  15.  
  16. >I have a question for the assembler gurus out there. Is there an easy way to
  17. >distinguish a 286 processor from a 386, and a 386 from a 486?
  18.  
  19. Get the program Infoplus and study the source. It is available from 
  20. simtel20 and garbo.
  21.  
  22. In short: It is easy in *real* mode, impossible in protected mode (which
  23. includes virtual-8086-mode).
  24.  
  25. Don't flame me for this; think it over instead. The 486 manual gives
  26. states that all the flag-handling instructions may trap in protected
  27. mode. Also the BSwap instructions (etc.) may be emulated on a 386.
  28. Interrupts cannot be stopped so timing is unrealiable. 
  29.  
  30. A 486DX can be distinguished from a 386 by checking the type of 
  31. co-processor. A RapidCad would show as 486, though (I think!).
  32.  
  33. -- 
  34. -------------------------------------------------------------
  35. Signature file under construction -- Drive carefully, please!
  36. -------------------------------------------------------------
  37.                                Morten Welinder, terra@diku.dk
  38.