source: trunk/minix/lib/i386/em/em_cff4.s@ 10

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

Minix 3.1.2a

File size: 257 bytes
Line 
1.sect .text; .sect .rom; .sect .data; .sect .bss
2.define .cff4
3
4 .sect .text
5.cff4:
6 mov bx,sp
7 fldd 4(bx)
8 fstcw 4(bx)
9 wait
10 mov dx,4(bx)
11 and 4(bx),0xf3ff ! set to rounding mode
12 wait
13 fldcw 4(bx)
14 fstps 8(bx)
15 mov 4(bx),dx
16 wait
17 fldcw 4(bx)
18 wait
19 ret
Note: See TracBrowser for help on using the repository browser.