# `iretw`

[x86-64 Documentation](https://asm-editor.specy.app/documentation/x86.md) › [Instructions](https://asm-editor.specy.app/documentation/x86/instruction.md)

Web page: https://asm-editor.specy.app/documentation/x86/instruction/iretw

**Interrupt return, 16-bit**

Category: System

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](https://intel.github.io/SDM/instruction/IRET-IRETD-IRETQ.html)

## Flags

| Flag | Effect |
| --- | --- |
| 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. Loaded only when the program has the privilege to change it. A program in the editor does not, so IF keeps its value. |
| DF | loaded from the stack |
| OF | loaded from the stack |

## Forms

- `iretw`

## Description

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