lenochka/loader/x86debug.asm
2019-03-29 00:27:42 +02:00

12 lines
221 B
NASM

section .text
global x86set_wr_breakpoint
x86set_wr_breakpoint:
mov eax,[esp+4]
; Setup debug registers
mov dr0,eax
;10 01 00000000000000 10
mov eax,11010000000000000010b
mov dr7,eax ; 1st global breakpoint
ret