ack/mach/i86/libem/csb2.s

30 lines
414 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:
!si, descriptor address
!dx, index
lods
xchg ax,bx ! default
lods
xchg ax,cx ! number of cases
1:
dec cx
jl 2f
lods
cmp ax,dx
lods
jne 1b
xchg ax,bx
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