Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rochester!pt!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sys.ibm.pc Subject: Re: Do you know how ? Would you mind telling me ? Message-ID: <71@b.gp.cs.cmu.edu> Date: Wed, 29-Jul-87 22:51:21 EDT Article-I.D.: b.71 Posted: Wed Jul 29 22:51:21 1987 Date-Received: Sat, 1-Aug-87 10:17:15 EDT References: <732@pc.ecn.purdue.edu> <4271@amd.UUCP> Distribution: world Organization: Carnegie-Mellon University, CS/RI Lines: 25 Keywords: PC-Magazine In article <4271@amd.UUCP> ching@amd.UUCP (Mike Ching) writes: >In article <732@pc.ecn.purdue.edu> jmoore@pc.ecn.purdue.edu (James D Moore) writes: >>(2) Also if possible determine the CPU type (8086,8088,80186,80286,80386) > >#2 can be done by testing various instructions that were *fixed* in >the later CPUs. The trickiest test differentiates between 8 and 16 >bit versions by modifying the code that should already be in the >prefetch queue in a 8086 (so the original code is executed) but not >yet fetched in a 8088 (so the modified instruction is executed). >There are also tests for the NEC V20 and V30. > Exactly these techniques are used by CPUID, one of the many fine programs put out by PC Magazine and PC Tech Journal (this one appeared about 18 months ago). You should be able to find it on most any IBM-oriented BBS, and also in the SIMTEL20 archives as PD:CPUID.ASM. It does not detect 386's; that may require going into protected mode and seeing if clearing the protected mode flag returns you to real mode (286's require a reset--there is an ugly kludge in AT BIOSes to let you continue on return to real mode). -- -=-=-=-=-=-=-=-= {harvard,seismo,ucbvax}!b.gp.cs.cmu.edu!ralf =-=-=-=-=-=-=-=- ARPAnet: RALF@B.GP.CS.CMU.EDU BITnet: RALF%B.GP.CS.CMU.EDU@CMUCCVMA AT&Tnet: (412) 268-3053 (school) FIDOnet: Ralf Brown at 129/31 DISCLAIMER? Who ever said I claimed anything? "I do not fear computers. I fear the lack of them..." -- Isaac Asimov