仿照键盘中断,编写鼠标中断

master
pthzwps2n 2 years ago
parent 9ec45cf1c1
commit ca76fe1b0c

@ -0,0 +1,65 @@
# 1 "mouse.S"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "mouse.S"
# 1 "mouse.S"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "mouse.S"
# 1 "../../include/linux/config.h" 1
# 36 "../../include/linux/config.h"
# 47 "../../include/linux/config.h"
# 2 "mouse.S" 2
.globl mouse_interrupt
mouse_interrupt:
pushl %eax
pushl %ebx
pushl %ecx
pushl %edx
push %ds
movl $0x10,%eax
mov %ax,%ds
//
xor %eax,%eax
inb $0x60,%al
pushl %eax
call readmouse
addl $4,%esp
//EOI
movb $0x20,%al
outb %al,$0xA0
outb %al,$0x20
pop %ds
popl %edx
popl %ecx
popl %ebx
popl %eax
iret
Loading…
Cancel
Save