iretw
Interrupt return, 16-bit
Returns from an interrupt by popping ip, cs and the flags as 2-byte words, and in 64-bit mode sp and ss as well.
8086 and later
CFPFAFZFSFTFIFDFOF ●●●●●●●●●
- ● set from the result
- CF Loaded from the stack.
- PF Loaded from the stack.
- AF Loaded from the stack.
- ZF Loaded from the stack.
- SF Loaded from the stack.
- TF Loaded from the stack.
- IF Loaded from the stack only with the privilege to change it, which a Linux program lacks.
- DF Loaded from the stack.
- OF Loaded from the stack.
Forms
iretw
In 64-bit mode it also pops sp and ss, 10 bytes in all.