--- np2/romimage/BIOS/vect09.x86 2004/03/31 19:23:38 1.1 +++ np2/romimage/BIOS/vect09.x86 2004/04/01 13:19:00 1.2 @@ -2,6 +2,8 @@ vect09: sti push ax push ds + xor ax, ax + mov ds, ax in al, 0x43 test al, 0x38 jne short .err @@ -9,16 +11,19 @@ vect09: sti out 0x43, al mov byte [0x0529], 0 in al, 0x41 + mov ah, al call bios09 -.eoi: mov al, 0x20 +.eoi: pop ds cli - out 00h, al - pop ds + mov al, 0x20 + out 0x00, al + cmp ah, 0x60 + je short .int5 + cmp ah, 0x61 + je short .int6 pop ax iret -.err: push ds - xor ax, ax - cmp byte [0x0529], 3 +.err: cmp byte [0x0529], 3 jae short .force inc byte [0x0529] mov al, 0x14 @@ -26,3 +31,11 @@ vect09: sti in al, 0x41 jmp short .eoi +.int5: pop ax + int 0x05 + iret + +.int6: pop ax + int 0x06 + iret +