| Line | |
|---|
| 1 | .sect .text; .sect .rom; .sect .data; .sect .bss
|
|---|
| 2 | .define .csa4
|
|---|
| 3 |
|
|---|
| 4 | .sect .text
|
|---|
| 5 | .csa4:
|
|---|
| 6 | ! bx, descriptor address
|
|---|
| 7 | ! ax, dx: index
|
|---|
| 8 | mov cx,(bx) ! default
|
|---|
| 9 | sub ax,2(bx)
|
|---|
| 10 | ! ignore high order word; if non-zero, the
|
|---|
| 11 | ! case descriptor would not fit anyway
|
|---|
| 12 | cmp ax,6(bx)
|
|---|
| 13 | ja 1f
|
|---|
| 14 | 2:
|
|---|
| 15 | sal ax,#1
|
|---|
| 16 | add bx,ax
|
|---|
| 17 | mov bx,10(bx)
|
|---|
| 18 | test bx,bx
|
|---|
| 19 | jnz 2f
|
|---|
| 20 | 1:
|
|---|
| 21 | mov bx,cx
|
|---|
| 22 | test bx,bx
|
|---|
| 23 | jnz 2f
|
|---|
| 24 | ECASE = 20
|
|---|
| 25 | .extern .fat
|
|---|
| 26 | mov ax,#ECASE
|
|---|
| 27 | push ax
|
|---|
| 28 | jmp .fat
|
|---|
| 29 | 2:
|
|---|
| 30 | jmp (bx)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.