Hi.
I have problem with replacing interrupt 0x8 and 0x9. After my changes to IVT and enabling interrupts (sti), my functions are called only once. Int 0x8 should be called 18.2 times per second, but it isn't. I'm using qemu.
Here's my code:
Code:
; Interrupt handler
INT_0x8:
pusha
call Test
popa
iret
[...]
; Install 0x8 IRQ0
mov bx, 0x8*4
mov word [es:bx], INT_0x8
mov word [es:bx+2], 0
[...]
; My loop
sti
_Test:
call Test
hlt
jmp _Test
hlt
jmp $
LastKey db '<'
TestID dw 0
Test:
mov bx, 0xB800
mov es, bx
mov bx, [TestID]
mov al, [LastKey]
mov byte [es:bx], al
mov byte [es:bx+1], 0xA0
add word [TestID], 2
ret
Anyone can help me?