📄 harddisk.s
字号:
.globl hd_interrupt
.align 4hd_interrupt:
cld pushl %eax
pushl %ebx pushl %ecx pushl %edx
pushl %esi
pushl %edi
pushl %ebp
push %ds push %es push %fs
push %gs
movl $0x10,%eax mov %ax,%ds mov %ax,%es
mov %ax,%fs
movl $do_hd,%eax
call *%eax
movb $0x20,%al outb %al,$0xa0
movb $0x0b,%al
outb %al,$0xa0
inb $0xa0,%al
cmpb $0x00,%al
jne hd_interrupt_0
movb $0x20,%al outb %al,$0x20
hd_interrupt_0:
pop %gs pop %fs pop %es pop %ds
popl %ebp
popl %edi
popl %esi popl %edx popl %ecx
popl %ebx popl %eax
iret
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -