summaryrefslogtreecommitdiff
path: root/xxx/int_mouse_handler.asm
blob: 9816950b90a93da308536c9587ce1ea897127013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
global int_mouse_handler
[extern mouse_handler]

[bits 32]
int_mouse_handler: 
  pusha

 call mouse_handler

 mov al, 0x20   ; Port number AND command number to Acknowledge IRQ
 out 0xa0, al   ; came from slave
 out 0x20, al   ; Acknowledge IRQ, so we keep getting interrupts

 popa

 iret           ;Interrupt-Return