ack/mach/i86/libem/csb2.s

30 lines
372 B
ArmAsm
Raw Normal View History

1987-01-08 10:13:48 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
1985-02-07 15:33:13 +00:00
.define .csb2
1987-01-08 10:13:48 +00:00
.sect .text
1985-02-07 15:33:13 +00:00
.csb2:
!bx, descriptor address
!ax, index
mov dx,(bx)
mov cx,2(bx)
1985-02-07 15:33:13 +00:00
1:
add bx,4
1985-02-07 15:33:13 +00:00
dec cx
1987-06-10 13:46:21 +00:00
jl 4f
cmp ax,(bx)
1985-02-07 15:33:13 +00:00
jne 1b
mov bx,2(bx)
1985-02-07 15:33:13 +00:00
2:
test bx,bx
jnz 3f
1987-01-08 10:13:48 +00:00
.extern ECASE
.extern .fat
1985-02-07 15:33:13 +00:00
mov ax,ECASE
push ax
jmp .fat
3:
jmp bx
1987-06-10 13:46:21 +00:00
4:
mov bx,dx
jmp 2b