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:
|
1987-06-09 10:22:50 +00:00
|
|
|
!bx, descriptor address
|
|
|
|
!ax, index
|
|
|
|
mov dx,(bx)
|
|
|
|
mov cx,2(bx)
|
1985-02-07 15:33:13 +00:00
|
|
|
1:
|
1987-06-09 10:22:50 +00:00
|
|
|
add bx,4
|
1985-02-07 15:33:13 +00:00
|
|
|
dec cx
|
1987-06-10 13:46:21 +00:00
|
|
|
jl 4f
|
1987-06-09 10:22:50 +00:00
|
|
|
cmp ax,(bx)
|
1985-02-07 15:33:13 +00:00
|
|
|
jne 1b
|
1987-06-09 10:22:50 +00:00
|
|
|
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
|