summaryrefslogtreecommitdiff
path: root/asm/int_mouse_handler.asm
blob: 6872af08a9cace838377ed8ad44788a24b2980bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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