source: trunk/minix/lib/ack/i386/em/em_cfi.s@ 19

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

Minix 3.1.2a

File size: 352 bytes
Line 
1.sect .text; .sect .rom; .sect .data; .sect .bss
2.define .cfi
3
4 .sect .text
5.cfi:
6 mov bx,sp
7 fstcw 4(bx)
8 wait
9 mov dx,4(bx)
10 or 4(bx),0xc00 ! truncating mode
11 wait
12 fldcw 4(bx)
13 cmp 8(bx),4
14 jne 2f
15 ! loc 4 loc ? cfi
16 flds 12(bx)
17 fistpl 12(bx)
181:
19 mov 4(bx),dx
20 wait
21 fldcw 4(bx)
22 ret
232:
24 ! loc 8 loc ? cfi
25 fldd 12(bx)
26 fistpl 16(bx)
27 jmp 1b
Note: See TracBrowser for help on using the repository browser.