em_csb4.s

来自「MINIX2.0操作系统源码,是Linux的前身,世界上最小的32位操作系统」· S 代码 · 共 30 行

S
30
字号
.sect .text; .sect .rom; .sect .data; .sect .bss
.define .csb4

.sect .text
.csb4:
				!ebx, descriptor address
				!eax,  index
	mov	edx,(ebx)
	mov	ecx,4(ebx)
1:
	add	ebx,8
	dec     ecx
	jl      4f
	cmp     eax,(ebx)
	jne     1b
	mov	ebx,4(ebx)
2:
	test    ebx,ebx
	jnz     3f
.extern ECASE
.extern .fat
	mov     eax,ECASE
	push    eax
	jmp     .fat
3:
	jmp     ebx
4:
	mov	ebx,edx
	jmp	2b

⌨️ 快捷键说明

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