source: trunk/minix/lib/i386/em/em_cmf4.s@ 9

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

Minix 3.1.2a

File size: 249 bytes
Line 
1.sect .text; .sect .rom; .sect .data; .sect .bss
2.define .cmf4
3
4 .sect .text
5.cmf4:
6 mov bx,sp
7 xor cx,cx
8 flds 8(bx)
9 flds 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.