source:
trunk/minix/lib/i86/em/em_cmu4.s@
10
Last change on this file since 10 was 9, checked in by , 14 years ago | |
---|---|
File size: 285 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | .define .cmu4 |
2 | ||
3 | .text | |
4 | .cmu4: | |
5 | pop bx ! return address | |
6 | pop cx | |
7 | pop dx | |
8 | pop ax | |
9 | push si | |
10 | mov si,sp | |
11 | xchg bx,2(si) | |
12 | pop si | |
13 | cmp bx,dx | |
14 | ja 1f | |
15 | jb 2f | |
16 | cmp ax,cx | |
17 | ja 1f | |
18 | je 3f | |
19 | 2: | |
20 | mov ax,#-1 | |
21 | ret | |
22 | 3: | |
23 | xor ax,ax | |
24 | ret | |
25 | 1: | |
26 | mov ax,#1 | |
27 | ret |
Note:
See TracBrowser
for help on using the repository browser.