home *** CD-ROM | disk | FTP | other *** search
- 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
- From: denis.giroux@freddy.ersys.edmonton.ab.ca (Denis Giroux)
- Newsgroups: alt.lang.asm
- Subject: Identifying Processors
- Message-ID: <98.749.uupcb@freddy.ersys.edmonton.ab.ca>
- Date: 22 Nov 92 13:25:00 GMT
- Reply-To: denis.giroux@freddy.ersys.edmonton.ab.ca (Denis Giroux)
- Distribution: world
- Organization: Freddy's Place BBS - Edmonton, AB - 403-456-4241
- Lines: 24
-
- TO: all
-
- I have a question for the assembler gurus out there. Is there an easy way to
- distinguish a 286 processor from a 386, and a 386 from a 486?
-
- I have made a procedure to do it, and I find 286+ processor identification
- messy. All I've been able to figure out for these is to hook interrupt 06h
- (invalid op code on 186+ processors) and executing instructions that only work
- on a specific processor(and those above it), and see if it traps to int 6.
-
- I am looking for a quick and easy way of doing it, like identifying an 8086
- by:
- mov cl, 20h
- shr cl, cl
- cmp cl, 20h
- je not_a_8086 ; 80186's and above use modulo 32 on the shift count
-
- Is there any instruction quirks like this between 286's <-> 386's <-> 486's??
- Or even between different manufacturers(AMD, Cyrix, Intel, NEC)??
-
- Anyone willing to help? E-mail me at:
- denis.giroux@freddy.ersys.edmonton.ab.ca
-
-
-