Creating an interrupt?
Posted: Mon Jun 03, 2013 3:51 pm
I am trying to create my first ever interrupt but I have ran into a bit of trouble can anyone explain what I'm doing wrong here
I read that in the interrupt vector table each interrupt uses 4 bytes and is in order
so first 4 bytes is interrupt 0 next 4 bytes is interrupt 1 ect ect
Code: Select all
cli
mov ax, cs
mov ds, ax
mov es, ax
mov bx, 0x00
mov es, bx
mov bx, 0x00
mov word[es:bx], ax
inc bx
inc bx
mov word[es:bx] INT0
sti
int 0h
jmp $
INT0:
mov ah, 0eh
mov al, 65
int 10h
so first 4 bytes is interrupt 0 next 4 bytes is interrupt 1 ect ect