Method for distinguishing between a 286-type central processing unit and a 386-type central processing unit
First Claim
Patent Images
1. A method for operating a CPU to determine its type, said CPU selected from a group including 386 type microprocessors and 286 type microprocessors, comprising the steps of:
- performing a load operation to the flags register of said CPU with a selected data word; and
after said step of performing a load operation, testing a specified bit of the CPU'"'"'s flags register, said specified bit being any of bits 12, 13 or 14, to determine if said specified bit was loaded with the corresponding bit in said selected data word as a result of said load operation or if said step of performing a load operation did not load said specified bit with the corresponding bit in said selected data word.
2 Assignments
0 Petitions
Accused Products
Abstract
A method is disclosed for distinguishing between the Intel 80386 and 80286 CPUs. Bits 12, 13, and 14 of the 386 flags word in the real mode are always zero in the 286 architecture and cannot be set, but can be set to a one on the 386. The method includes the steps of attempting to set any of those bits and examining the results. A source code listing is attached.
36 Citations
3 Claims
-
1. A method for operating a CPU to determine its type, said CPU selected from a group including 386 type microprocessors and 286 type microprocessors, comprising the steps of:
-
performing a load operation to the flags register of said CPU with a selected data word; and after said step of performing a load operation, testing a specified bit of the CPU'"'"'s flags register, said specified bit being any of bits 12, 13 or 14, to determine if said specified bit was loaded with the corresponding bit in said selected data word as a result of said load operation or if said step of performing a load operation did not load said specified bit with the corresponding bit in said selected data word. - View Dependent Claims (2)
-
-
3. A method of operating an integrated circuit logic device to determine its type by executing a computer program, said logic device selected from a group of logic device types comprising a first type corresponding to 386-type microprocessors and a second type corresponding to 286-type microprocessors, said method comprising the steps of:
-
performing a load operation to a flags register of said logic device with a selected data word, said flags register having a certain bit therein which is writable by said load operation for logic devices of the first type of said group of logic device types, and which is not writable by said load operation for logic devices of the second type of said group of logic device types; and testing said certain bit of said flags register to determine if said certain bit was written with the corresponding bit in said selected data word as a result of said load operation; wherein said logic device is identified as of said first type or of said second type based on the result of sail testing step.
-
Specification