# `sti`

[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/sti

**Set interrupt flag** · Privileged

Category: System

Sets the interrupt flag, enabling maskable interrupts.

8086 and later

[Intel's reference: STI](https://intel.github.io/SDM/instruction/STI.html)

## Flags

| Flag | Effect |
| --- | --- |
| CF | not changed |
| PF | not changed |
| AF | not changed |
| ZF | not changed |
| SF | not changed |
| IF | always 1 |
| DF | not changed |
| OF | not changed |

## Forms

- `sti`

## Description

Like [`cli`](https://asm-editor.specy.app/documentation/x86/instruction/cli.md), only privileged code may do this: in a Linux program `sti` raises a general-protection fault, which the program receives as a segmentation fault.

## Example

```x86
global _start

section .text
_start:
        mov rax, 12
        mov rbx, 5
        mov rcx, 3
        mov rsi, 9

        sti

        mov rax, 60         ; syscall 60: exit
        xor rdi, rdi
        syscall
```
