source:
trunk/minix/lib/i386/em/em_cmf8.s@
20
Last change on this file since 20 was 9, checked in by , 14 years ago | |
---|---|
File size: 250 bytes |
Line | |
---|---|
1 | .sect .text; .sect .rom; .sect .data; .sect .bss |
2 | .define .cmf8 |
3 | |
4 | .sect .text |
5 | .cmf8: |
6 | mov bx,sp |
7 | xor cx,cx |
8 | fldd 12(bx) |
9 | fldd 4(bx) |
10 | fcompp ! compare and pop operands |
11 | fstsw ax |
12 | wait |
13 | sahf |
14 | je 1f |
15 | jb 2f |
16 | dec cx |
17 | jmp 1f |
18 | 2: |
19 | inc cx |
20 | 1: |
21 | mov ax,cx |
22 | ret |
Note:
See TracBrowser
for help on using the repository browser.