ack/mach/i86/libem/csa2.s

28 lines
412 B
ArmAsm
Raw Permalink 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 .csa2
1987-01-08 10:13:48 +00:00
.sect .text
1985-02-07 15:33:13 +00:00
.csa2:
! bx, descriptor address
! ax, index
mov dx,(bx) ! default
sub ax,2(bx)
cmp ax,4(bx)
1985-02-07 15:33:13 +00:00
ja 1f
sal ax,1
add bx,ax
mov bx,6(bx)
1985-02-07 15:33:13 +00:00
test bx,bx
jnz 2f
1:
mov bx,dx
test bx,bx
jnz 2f
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
2:
jmp bx