Code: Select all
global LoadIDT
IDTstart:
dw ; offset, first half ???????
dw 0x8 ; selector
db 0 ; unused, set to zero
db 0x8E ; type and attributes
dw ; offset, last half ???????
IDTend:
toc:
dw IDTend - IDTstart - 1 ; limit (Size of IDT)
dd IDTstart ; base of IDT
LoadIDT:
cli
lidt [toc]
ret
handler:
cli
hlt
iret
Any help would be appreciated.