summaryrefslogtreecommitdiff
path: root/xxx/int_mouse_handler.asm
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-02 00:08:42 +0200
committerMiguel <m.i@gmx.at>2018-09-02 00:08:42 +0200
commit8e3411139b27a3421e9ac75c13f14f99f6dd3137 (patch)
treecf8b53ab02863117c310bde11ee4683e134cf1b2 /xxx/int_mouse_handler.asm
parent0fff2e6dc6fae82da1c7978918a490c25cc36f04 (diff)
syscalls
Diffstat (limited to 'xxx/int_mouse_handler.asm')
-rw-r--r--xxx/int_mouse_handler.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/xxx/int_mouse_handler.asm b/xxx/int_mouse_handler.asm
new file mode 100644
index 0000000..9816950
--- /dev/null
+++ b/xxx/int_mouse_handler.asm
@@ -0,0 +1,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