entry.s

来自「用于汇编领域的,运用于OS的MAIN函数.基于硬件基础的源代码」· S 代码 · 共 100 行

S
100
字号
.text.code32ret_from_exception:	popl	%ebx	popl	%ecx	popl	%edx	popl	%esi	popl	%edi	popl	%ebp	popl	%eax	popl	%ds	popl	%es	popl	%fs	iret.global	divide_error.align 4divide_error:	pushl	$0	pushl	$do_divide_error.align 4error_code:	pushl	%fs	pushl	%es	pushl	%ds	pushl	%eax	pushl	%ebp	pushl	%edi	pushl	%esi	pushl	%edx	pushl	%ecx	pushl	%ebx	movl	40(%esp), %eax		# function address	call	*%eax	jmp	ret_from_exception.extern timer_handler.global timer_isr.align 4timer_isr:	cli	pushl	%fs	pushl	%es	pushl	%ds	pushl	%eax	pushl	%ebp	pushl	%edi	pushl	%esi	pushl	%edx	pushl	%ecx	pushl	%ebx	cld	call	timer_handler	popl	%ebx	popl	%ecx	popl	%edx	popl	%esi	popl	%edi	popl	%ebp	popl	%eax	popl	%ds	popl	%es	popl	%fs	sti	iret.extern kbd_handler.global kbd_isr.align 4kbd_isr:	cli	pushl	%fs	pushl	%es	pushl	%ds	pushl	%eax	pushl	%ebp	pushl	%edi	pushl	%esi	pushl	%edx	pushl	%ecx	pushl	%ebx	cld	call	kbd_handler	popl	%ebx	popl	%ecx	popl	%edx	popl	%esi	popl	%edi	popl	%ebp	popl	%eax	popl	%ds	popl	%es	popl	%fs	sti	iret

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?