User:Johnburger/Demo/Exec/Ints/Trace

From OSDev Wiki
< User:Johnburger‎ | Demo
Revision as of 09:29, 29 August 2017 by No92 (talk | contribs) (Fix links to moved pages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install the simple Single Step handler, which doesn't require its own context to run.

Demo/Exec/Ints/Trace.inc

;
; Exec/Ints/Trace.inc
;
; This module installs a Single-Step (Trace) handler
Exec.Ints.Trace:
MOVEAX,Ints.Single
MOVEBX,IDT.Single
MOVCX,Selector(GDT.Ints,GDT,RPL0)
MOVDL,Type.Sys(Trap,DPL0,386)
CALLExec.Alloc.IDT
RET
Retrieved from "https://wiki.osdev.org/index.php?title=User:Johnburger/Demo/Exec/Ints/Trace&oldid=21436"