minix/lib/i86/em/em_csb2.s
2009-11-09 10:26:00 +00:00

28 lines
318 B
ArmAsm

.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