Figure 2.3 General-purpose registers in IA-32.Flags
IA-32 processors have a special register called EFLAGSthat contains all kinds
of status and system flags. The system flags are used for managing the various
processor modes and states, and are irrelevant for this discussion. The status
flags, on the other hand, are used by the processor for recording its current log-
ical state, and are updated by many logical and integer instructions in order to
record the outcome of their actions. Additionally, there are instructions that
operate based on the values of these status flags, so that it becomes possible toEDX
32 BitsDX
16 BitsDH DL8 Bits 8 BitsEAX
32 BitsAX
16 BitsAH AL8 Bits 8 BitsECX
32 BitsCX
16 BitsCH CL8 Bits 8 BitsEBX
32 BitsBX
16 BitsBH BL8 Bits 8 BitsESP
32 BitsSP
16 Bits
EBP
32 BitsBP
16 BitsESI
32 BitsSI
16 Bits
EDI
32 BitsDI
16 Bits46 Chapter 2