source:
trunk/minix/lib/i86/em/em_csa2.s@
9
| Last change on this file since 9 was 9, checked in by , 15 years ago | |
|---|---|
| File size: 358 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | .define .csa2 |
| 2 | ||
| 3 | .text | |
| 4 | .csa2: | |
| 5 | ! bx, descriptor address | |
| 6 | ! ax, index | |
| 7 | mov dx,(bx) ! default | |
| 8 | sub ax,2(bx) | |
| 9 | cmp ax,4(bx) | |
| 10 | ja 1f | |
| 11 | sal ax,#1 | |
| 12 | add bx,ax | |
| 13 | mov bx,6(bx) | |
| 14 | test bx,bx | |
| 15 | jnz 2f | |
| 16 | 1: | |
| 17 | mov bx,dx | |
| 18 | test bx,bx | |
| 19 | jnz 2f | |
| 20 | ECASE = 20 | |
| 21 | .extern .fat | |
| 22 | mov ax,#ECASE | |
| 23 | push ax | |
| 24 | jmp .fat | |
| 25 | 2: | |
| 26 | jmp (bx) |
Note:
See TracBrowser
for help on using the repository browser.