1: / double modf(x, *fp)
2: / double x, *fp;
3: / return fractional part
4: / stash integer part (as double)
5:
6: .globl _modf
7: .globl csv, cret
8: .globl __fr0,__modf,__fr1
9: one = 040200
10:
11: _modf:
12: jsr r5,csv
13: setd
14: movf 4(r5),fr0
15: movf fr0,__fr0
16: modf $one,fr0
17: movf fr0,__modf
18: movf fr1,*12.(r5)
19: movf fr1,__fr1
20: jmp cret
21: .data
22: __fr0: 0
23: 0
24: __modf: 0
25: 0
26: __fr1: 0
27: 0
28: .text
Defined functions
_modf
declared in line
6; defined in line
11; used 1 times
one
defined in line
9; used 1 times
Defined variables
__fr0
declared in line
8; defined in line
22; used 2 times
__fr1
declared in line
8; defined in line
26; used 2 times
__modf
declared in line
8; defined in line
24; used 2 times