# `brkpt`

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

**Breakpoint trap (interrupt 3)**

Category: System

Raises interrupt 3, the breakpoint trap, using the one-byte encoding that debuggers insert.

8086 and later

[Intel's reference: INTn/INTO/INT3/INT1](https://intel.github.io/SDM/instruction/INTn-INTO-INT3-INT1.html)

## Flags

| Flag | Effect |
| --- | --- |
| CF | not changed |
| PF | not changed |
| AF | not changed |
| ZF | not changed |
| SF | not changed |
| TF | always 0 |
| IF | depends on the result |
| DF | not changed |
| OF | not changed |

## Forms

- `brkpt`

## Description

Unlike `int 3`, it is not subject to the virtual-8086 `IOPL` check or to interrupt redirection. Under Linux, a program that executes it receives `SIGTRAP`.

## Example

```x86
global _start

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

        brkpt

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