User:Johnburger/Demo/Exec/Ints/NoSeg
< User:Johnburger | Demo
Jump to navigation
Jump to search
Install the simple No Segment handler, which doesn't require its own context to run.
Demo/Exec/Ints/NoSeg.inc
;
; Exec/Ints/NoSeg.inc
;
; This module installs an example No Segment handler.
Exec.Ints.NoSeg:
MOV EAX,Ints.NoSeg
MOV EBX,IDT.NoSeg
MOV CX,Selector(GDT.Ints, GDT, RPL0)
MOV DL,Type.Sys(Trap, DPL0, 386)
CALL Exec.Alloc.IDT
RET