source:
trunk/minix/lib/i86/em/em_sbi.s@
10
| Last change on this file since 10 was 9, checked in by , 15 years ago | |
|---|---|
| File size: 372 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | .define .sbi |
| 2 | .text | |
| 3 | ||
| 4 | ! #bytes in cx , top of stack in ax | |
| 5 | .sbi: | |
| 6 | pop bx ! return subress | |
| 7 | cmp cx,#2 | |
| 8 | jne 1f | |
| 9 | pop cx | |
| 10 | sub ax,cx | |
| 11 | neg ax | |
| 12 | jmp (bx) | |
| 13 | 1: | |
| 14 | cmp cx,#4 | |
| 15 | jne 9f | |
| 16 | pop dx | |
| 17 | pop cx | |
| 18 | sub cx,ax | |
| 19 | mov ax,cx | |
| 20 | pop cx | |
| 21 | sbb cx,dx | |
| 22 | push cx | |
| 23 | jmp (bx) | |
| 24 | 9: | |
| 25 | .extern .trpilin | |
| 26 | push bx | |
| 27 | jmp .trpilin |
Note:
See TracBrowser
for help on using the repository browser.