minix/lib/i86/em/em_csb2.s

29 lines
318 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
.define .csb2
.text
.csb2:
!bx, descriptor address
!ax, index
mov dx,(bx)
mov cx,2(bx)
1:
add bx,#4
dec cx
jl 4f
cmp ax,(bx)
jne 1b
mov bx,2(bx)
2:
test bx,bx
jnz 3f
ECASE = 20
.extern .fat
mov ax,#ECASE
push ax
jmp .fat
3:
jmp (bx)
4:
mov bx,dx
jmp 2b