int01

Debug trap (interrupt 1)

Raises interrupt 1, the debug trap, using the one-byte encoding.

386 and later

Intel's reference: INTn/INTO/INT3/INT1

CFPFAFZFSFTFIFDFOF –––––0●––
  • ● set from the result
  • 0 always 0
  • – not changed

Forms

  • int01

Intel documents it for hardware debugging tools and recommends int3 for software breakpoints. Under Linux, a program that executes it receives SIGTRAP.

global _start

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

        int01

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