section .text mov bx,0xb800 mov es,bx mov byte[es:0],'a' mov byte[es:1],0x07 mov bx,0 mov es,bx mov ax,cs mov word[es:32],handler mov word[es:34],0x07c0 mov al,00111100b out 0x43,al mov ax,0 out 0x40,al out 0x40,al loop: hlt jmp loop vdata: dw 0 tdata: db 0 handler: mov bx,0xb800 mov es,bx mov bx,0x7c0 mov fs,bx mov bx,[fs:vdata] mov byte[es:bx],'a' inc bx mov byte[es:bx],0x07 inc bx mov word[fs:vdata],bx mov al,0x20 out 0x20,al iretThe timer doesn't seem to work for me. I know the interrupt works because I tested executing the interrupt itself in a loop, and it worked fine.
EDIT: Scratch that. When I have it in a loop of HLT's, it executes once. Am I sending the end of interrupt signal to the PIC incorrectly?
Edited by dargueta, 02 November 2010 - 01:42 PM.


Sign In
Create Account


Back to top









