source:
trunk/libs/newlib/src/newlib/libc/sys/sysvi386/fps.S
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
File size: 270 bytes |
Line | |
---|---|
1 | .globl _fpgetsticky |
2 | _fpgetsticky: |
3 | getpsw r0 |
4 | and.w #0x1f00,r0 |
5 | shl.w #0xf8,r0 |
6 | ret #0x0 |
7 | |
8 | |
9 | .globl _fpsetsticky |
10 | _fpsetsticky: |
11 | getpsw r0 |
12 | mov.w [ap],r1 |
13 | shl.w #0x8,r1 |
14 | updpsw.h r1,#0x1f00 |
15 | trapfl |
16 | and.w #0x1f00,r0 |
17 | shl.w #0xf8,r0 |
18 | ret #0x0 |
Note: See TracBrowser
for help on using the repository browser.