source: trunk/minix/lib/i386/em/em_cmf8.s@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

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
182:
19 inc cx
201:
21 mov ax,cx
22 ret
Note: See TracBrowser for help on using the repository browser.