The status flag control instructions operate on the bits in the %eflags register.
Table 3–10 Flag Control Instructions
Solaris Mnemonic |
Intel/AMD Mnemonic |
Description |
Notes |
---|---|---|---|
CLC |
clear carry flag | ||
CLD |
clear direction flag | ||
CLI |
clear interrupt flag | ||
CMC |
complement carry flag | ||
LAHF |
load flags into %ah register | ||
POPF |
pop %eflags from stack | ||
POPFL |
pop %eflags from stack |
popfq valid only under -xarch=amd64 |
|
PUSHF |
push %eflags onto stack | ||
PUSHFL |
push %eflags onto stack |
pushfq valid only under -xarch=amd64 |
|
SAHF |
store %ah register into flags | ||
STC |
set carry flag | ||
STD |
set direction flag | ||
STI |
set interrupt flag |