
inter80386
OF (Overflow Flag, bit 11)
OF is set if the operation resulted in a signed overflow. Signed overflow occurs when the operation resulted in carry/borrow into the sign bit
DF (Direction Flag, bit 10)
DF defines whether ESI and/or EDI registers postdecrement or postincrement during the string instructions. Postincrement occurs if DF is reset. Postdecrement occurs if DF is set.
IF (INTR Enable Flag, bit 9)
The IF flag, when set, allows recognition of external interrupts signalled on the INTR pin. When IF is reset, external interrupts signalled on the INTR are not recognized. IOPL indi- cates the maximum CPL value allowing alter- ation of the IF bit when new values are popped into EFLAGS or FLAGS.
TF (Trap Enable Flag, bit 8)
TF controls the generation of exception 1 trap when
SF (Sign Flag, bit 7)
SF is set if the
ZF (Zero Flag, bit 6)
ZF is set if all bits of the result are O. Other- wise it is reset.
AF (Auxiliary Carry Flag, bit 4)
The Auxiliary Flag is used to simplify the addi- tion and subtraction of packed BCD quanti- ties. AF is set if the operation resulted in a carry out of bit 3 (addition) or a borrow into bit 3 (subtraction). Otherwise AF is reset. AF is affected by carry out of, or borrow into bit 3 only, regardless of overall operand length: 8, 16 or 32 bits.
PF (Parity Flags, bit 2)
PF is set if the
CF (Carry Flag, bit 0)
CF is set if the operation resulted in a carry out of (addition), or a borrow into (subtraction) the
Note in these descriptions, "set" means "set to 1," and "reset" means "reset to 0."
2.3.4 Segment Registers
Six
4.In Protected Mode, each segment may range in size from one byte up to the entire linear and physi-
SEGMENT |
|
|
|
|
|
|
REGISTERS |
|
| DESCRIPTOR REGISTERS (LOADED AUTOMATICALLY) |
|
| |
A | \ |
| A |
|
| \ |
( | ( |
| Other |
| ||
|
|
|
|
|
| |
|
|
|
| Segment |
|
|
15 | 0 |
| Physical Base Address Segment Limit | Attributes from Descriptor |
| |
Selector |
| CS- |
| - | - |
|
Selector |
| SS- |
|
| - | |
Selector |
| DS- |
| - | - | - |
Selector |
| ES- |
| - | - | - |
Selector |
| FS- |
| - | - | - |
Selector |
| GS- |
| - | - | - |
Figure 2-4. 80386 Segment Registers, and Associated Descriptor Registers
10