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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!ersys!freddy!denis.giroux
  2. From: denis.giroux@freddy.ersys.edmonton.ab.ca (Denis Giroux) 
  3. Newsgroups: alt.lang.asm
  4. Subject: Identifying Processors
  5. Message-ID: <98.749.uupcb@freddy.ersys.edmonton.ab.ca>
  6. Date: 22 Nov 92 13:25:00 GMT
  7. Reply-To: denis.giroux@freddy.ersys.edmonton.ab.ca (Denis Giroux) 
  8. Distribution: world
  9. Organization: Freddy's Place BBS - Edmonton, AB - 403-456-4241
  10. Lines: 24
  11.  
  12. TO: all
  13.  
  14. I have a question for the assembler gurus out there. Is there an easy way to
  15. distinguish a 286 processor from a 386, and a 386 from a 486?
  16.  
  17. I have made a procedure to do it, and I find 286+ processor identification
  18. messy. All I've been able to figure out for these is to hook interrupt 06h
  19. (invalid op code on 186+ processors) and executing instructions that only work
  20. on a specific processor(and those above it), and see if it traps to int 6.
  21.  
  22. I am looking for a quick and easy way of doing it, like identifying an 8086
  23. by:
  24.   mov cl, 20h
  25.   shr cl, cl
  26.   cmp cl, 20h
  27.   je not_a_8086      ; 80186's and above use modulo 32 on the shift count
  28.  
  29. Is there any instruction quirks like this between 286's <-> 386's <-> 486's??
  30. Or even between different manufacturers(AMD, Cyrix, Intel, NEC)??
  31.  
  32. Anyone willing to help? E-mail me at:
  33. denis.giroux@freddy.ersys.edmonton.ab.ca
  34.  
  35.                      
  36.