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