icebp
Debug trap for in-circuit emulators (interrupt 1)
Raises interrupt 1, the debug trap, using the one-byte encoding that in-circuit emulators use.
386 and later
CFPFAFZFSFTFIFDFOF –––––0●––
- ● set from the result
- 0 always 0
- – not changed
Forms
icebp
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
icebp
mov rax, 60 ; syscall 60: exit
xor rdi, rdi
syscall