Encyclopedia  |   World Factbook  |   World Flags  |   Reference Tables  |   List of Lists     
   Academic Disciplines  |   Historical Timeline  |   Themed Timelines  |   Biographies  |   How-Tos     
Sponsor by The Tattoo Collection
Main Page | See live article | Alphabetical index


IA-32, sometimes generically called x86 or even x86-32. Within various programming language directives it is also referred to as "i386"; this directive would inform the compiler to generate code only for the IA-32 instruction set. It is the instruction set for a family of microprocessors installed in the vast majority of personal computers in the world. It refers mainly to the 32-bit specifications of the full x86 architecture.

The term means Intel Architecture, 32-bit, which distinguishes it from the 16-bit versions of the architecture that preceded it, and the 64-bit architecture IA-64 (which is very different, although it has an IA-32 compatibility mode). The more generic name for all 16 and 32-bit versions of this architecture is x86.

Intel was the inventor and is the biggest supplier of processors compatible with this instruction set, but it is not the only supplier of such processors. The second biggest supplier is AMD. And then there are numerous even smaller more specialized suppliers of these processors.

This instruction set was introduced in the Intel 80386 microprocessor in 1985. This instruction set is still the basis of most PC microprocessors nearly twenty years later in 2004. Even though the instruction set has remained intact, the successive generations of microprocessors that run it have become much faster at running it.

The IA-32 instruction set is usually described as CISC (Complex Instruction Set Computer) architecture, though such classifications have become less meaningful with advances in microprocessor design.

Table of contents
1 Two memory management models
2 Registers
3 Instructions
4 See also
5 External links

Two memory management models

There are two memory access models that IA-32 supports. One is called Real mode, and the other is called Protected mode. In Real Mode, the processor is limited to accessing a total of just over 1MB of memory, while in Protected mode it can access all of its memory.

Real mode

The old DOS operating system required the Real Mode to work, while newer Windows, Linux and other operating systems usually require the Protected Mode. Upon power-on (aka booting), the processor initiates itself into Real mode, and then it begins loading programs automatically into RAM from ROM and disk. A program inserted somewhere along the boot sequence may be used to put the processor into the Protected mode.

Protected mode

In Protected mode, a number of other advantages beyond just the additional memory addressability beyond the DOS 1MB limit get activated. One of them is protected memory, which prevents programs from corrupting one another. Another one is virtual memory, which lets programs use more memory than is physically installed on the machine. And the third feature is task-switching, aka multitasking, which lets a computer juggle multiple programs all at once to look like they are all running at the same time.

The size of memory in Protected mode is usually limited to 4GB. However, this isn't the ultimate limit of the size of memory in IA-32 processors. Through tricks in the processor's page and segment memory management systems, IA-32 operating systems may be able to access more than 32-bits of address space, even without the switchover to the 64-bit paradigm. One such trick is known as PAE (Physical Address Extensions).

Virtual 8086 mode

There was also a sub-mode of operation in Protected mode, called Virtual 8086 mode. This is basically special hybrid operating mode which allowed old DOS programs and operating systems to run while under the control of a Protected mode supervisor operating system. This allowed for a great deal of flexibility in running both Protected mode programs and DOS programs simultaneously. This mode was added only with the IA-32 version of Protected mode, it did not exist previously in the 80286 16-bit version of Protected mode.


The 386 has eight 32-bit general purpose registers for application use. There are 8 floating point stack registers. Later processors added new registers with their various SIMD instruction sets too, such as MMX, 3DNow, and SSE.

There are also system registers that are used mostly by operating systems but not by applications usually. They are known as segment, control, debug, and test registers. There are six segment registers, used mainly for memory management. The number of control, debug or test registers vary from model to model.

General Purpose registers

The x86 general purpose registers are not really as general purpose as their name implies. That is because these general purpose registers have some highly specialized tasks that can often only be done by using only one or two specific registers. In other architectures, a general purpose register is a general purpose register, that is you can use any register you like for any purpose you like. The x86 general purpose registers further subdivide into registers specializing in data and others specializing in addressing.

Also a lot of operations can be done either inside a register or directly inside RAM without requiring the data to be loaded into a register first. The 1970's heritage of this architecture shows through by this behaviour.

Note: with the advent of the 64-bit extensions to x86 in AMD64, this odd behaviour has now been cleaned up (at least in 64-bit mode). General purpose registers are now truly general purpose and they can be used interchangeably. But this won't be covered here since we're talking about the 32-bit architecture.

8-bit and 16-bit register subsets

8-bit and 16-bit subsets of these registers are also accessible. For example, the lower 16-bits of the 32-bit EAX registers can be accessed by calling it the AX register. Some of the 16-bit registers can be further subdivided into 8-bit subsets too; for example, the upper 8-bit half of AX is called AH, and the lower half is called AL. Similarly, EBX is subdivided into BX (16-bit) and BH and BL (8-bit).

general data registers

All of the four following registers may be used as general purpose registers. However each has some specialized purpose as well. Each of these registers also have 16-bit or 8-bit subset names.

general address registers

Used only for address pointing. They have 16-bit subset names, but no 8-bit subsets.

Floating point stack registers

Since the introduction of the 80486, there are 8 x87 floating point registers, known as ST(0) through ST(7). Each register is 80-bits wide and stores numbers in the extended precision format of the
IEEE floating-point standard.

These registers are not accessible directly, but are accessible like a FIFO stack. The register numbers are not fixed, but are relative to the top of the stack; ST(0) is the top of the stack, ST(1) is the next register below the top of the stack, ST(2) is two below the top of the stack, etc. That means that data is always pushed down from the top of the stack, and operations are always done against the top of the stack. So you couldn't just access any register randomly, it has to be done in the stack order.

SIMD registers

MMX, 3DNow , and SSE also added new registers of their own to the IA-32 instruction set.

MMX registers

MMX added 8 new registers to the architecture, known as MM0 through MM7 (henceforth, just MMn). In reality, these new registers were just aliases for the existing x87 FPU stack registers. So anything you did to the floating point stack would also affect the MMX registers. Unlike the FP stack, these MMn registers were fixed not relative, and therefore they were randomly accessible.

Each of the MMn registers are 64-bit integers. However, one of the main concepts of the MMX instruction set is the concept of packed data types, which means instead of using the whole register for a single 64-bit integer (quadword), you can pack in two 32-bit integers (doubleword), four 16-bit integers (word), or eight 8-bit integers (byte).

Also because the MMX's 64-bit MMn registers are aliased to the FPU stack, and each of the stack registers are 80-bit wide, that means the upper 16-bits of the stack registers go unused in MMX, and these bits are set to all ones, which makes it look like NaN's or infinities in the floating point view. This makes it easier to tell whether you are working on a floating point data or MMX data.

3DNow! registers

3DNow! was designed to be the natural evolution of MMX from integers to floating point. As such, it uses the exact same register naming convention as MMX, that is MM0 through MM7. The only difference is that instead of packing byte to quadword integers into these registers, one would pack single precision floating points into these registers.

The advantage of aliasing registers with the FPU registers is that the same instruction and data structures used to save the state of the FPU registers can also be used to save 3DNow! register states. Thus no special modifications are required to be made to operating systems which would otherwise not know about

SSE registers

SSE discarded all legacy connections to the FPU stack. This also meant that this instruction set discarded all legacy connections to previous generations of SIMD instruction sets like MMX. But it freed the designers up, allowing them to use larger registers, not limited by the size of the FPU registers. The designers created eight 128-bit registers, named XMM0 through XMM7. (Note: in AMD64, the number of SSE XMM registers has been increased from 8 to 16.)

But the downside is that operating systems had to have an awareness of this new set of instructions in order to be able to save their register states. So Intel created a slightly modified version of Protected mode, called Enhanced mode which enables the usage of SSE instructions, whereas they stay disabled in regular Protected mode. The OS that is aware of SSE will activated Enhanced mode, whereas an unaware OS will enter only into traditional Protected mode.

SSE is a SIMD instruction set that works only on floating point values, like 3DNow!. However, unlike 3DNow! it severs all legacy connection to the FPU stack. Because it has larger registers than 3DNow!, SSE can pack twice the number of single precision floats into its registers. The original SSE was limited to only single-precision numbers, like 3DNow!. The SSE2 introduced the capability to pack double precision numbers too, which 3DNow! had no possibility of doing since a double precision number is 64-bit in size which would be the full size of a single 3DNow! MMn register. At 128-bit, the SSE XMMn registers could pack two double precision floats into one register. Thus SSE2 is much more suitable for scientific calculations than either SSE1 or 3DNow!, which were limited to only single precision.


The full listing of the x86 machine language mnemonics including integer, floating point, and SIMD instructions can be found in the X86 instruction listings link. They are categorized into a chronological and hierarchal format showing when the instructions first became available, and what category of instructions they are.

The original IA-32 instruction set has been evolved over time with the addition of the multimedia instruction updates. However, the ultimate evolution of IA-32 will be when it becomes 64-bit, but of course at that point it cannot be called IA-32 anymore.

SIMD Multimedia Instruction Set updates

Various generations of IA-32 CPUs since have added several extensions to the original instruction set. They were known technically as SIMD instruction sets. However, more colloquilly they were known as Multimedia instruction sets, because they were mainly used in multimedia entertainment software applications.

Next-generation 64-bit Instruction Sets

Two new instruction sets can claim to be the 64-bit successor to IA-32. One of them builds on top of IA-32 but has a different name, while the other one discards IA-32 completely but has a similar name.


Intel's IA-64 architecture is not directly compatible with the IA-32 instruction set. It completely discards all IA-32 instructions, and starts from scratch with a completely different instruction set. It can run IA-32 instructions through an instruction emulator -- basically a piece of software that translates IA-32 instructions into IA-64 instructions on the fly. However, since it was designed by Intel, the original creator of the IA-32 instruction set, it gets to keep the "IA" prefix despite the lack of any real familial connections.

It is the instruction set that is used inside their Itanium line of processors.


AMD's AMD64 instruction set, aka x86-64, is largely built on top of IA-32, and thus maintains the x86 family heritage. While extending the instruction set, AMD took the opportunity to clean up some of the odd behaviour of this instruction set that has existed (plagued?) since its earliest 16-bit days, while the processor is operating in 64-bit mode. They also doubled the number of general purpose registers from 8 to 16; and the general purpose registers are now much more truly general-purpose registers. They also doubled the number of SSE registers from 8 to 16 as well. They have also deprecated most of the functionality of the segment registers, since their usage has steadily declined even during the IA-32 days.

As of February 2004, Intel has implicitly acknowledged the logic of the AMD64 instruction set, and it will begin using it itself in its own products soon. However, Intel does not want to directly acknowledging its rival AMD, so it will not call it AMD64, it will call it EM64T instead. Intel has also prevented itself from ever using the term IA-64 for this architecture, since it has obviously already given that name to the architecture behind its Itanium processors.

See also

External links