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

Intel's reference: IRET/IRETD/IRETQ

CFPFAFZFSFTFIFDFOF ●●●●●●●●●
  • ● loaded from the stack
  • IF Loaded only when the program has the privilege to change it. A program in the editor does not, so IF keeps its value.

Forms

  • iretw

In 64-bit mode it also pops sp and ss, 10 bytes in all.