OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [a29khif/] [_fstat.s] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
        .file "_fstat.c"
2
        .sect .lit,lit
3
gcc2_compiled.:
4
        .text
5
        .align 4
6
        .global __fstat
7
;; syscalls used now --         .global _fstat
8
        .word 0x40000
9
__fstat:
10
;; syscalls used now -- _fstat:
11
        sub gr1,gr1,32
12
        asgeu V_SPILL,gr1,gr126
13
        add lr1,gr1,48
14
        sll lr5,lr10,0
15
        const gr116,__iostat
16
        consth gr116,__iostat
17
        calli lr0,gr116
18
        sll lr2,lr5,0
19
        sll lr10,gr96,0
20
        jmpt lr10,L8
21
        sll gr116,lr10,30
22
        jmpf gr116,L3
23
        add gr116,lr11,12
24
        add gr117,lr11,12
25
        const gr116,4096
26
        store 0,0,gr116,gr117
27
        add gr117,lr11,4
28
        const gr116,1
29
        jmp L4
30
        store 0,0,gr116,gr117
31
L3:
32
        const gr117,8192
33
        store 0,0,gr117,gr116
34
        add gr116,lr11,4
35
        store 0,0,gr117,gr116
36
L4:
37
        add gr117,lr11,20
38
        const gr116,0
39
        store 0,0,gr116,gr117
40
        store 0,0,gr116,lr11
41
        const gr116,_time
42
        consth gr116,_time
43
        calli lr0,gr116
44
        const lr2,0
45
        add gr116,lr11,16
46
        store 0,0,gr96,gr116
47
        sll lr2,lr5,0
48
        const lr3,0
49
        const lr7,__lseek
50
        consth lr7,__lseek
51
        calli lr0,lr7
52
        const lr4,1
53
        sll lr10,gr96,0
54
        constn lr6,65535
55
        cpneq gr116,lr10,lr6
56
        jmpf gr116,L7
57
        sll lr2,lr5,0
58
        const lr3,0
59
        calli lr0,lr7
60
        const lr4,2
61
        add gr116,lr11,8
62
        store 0,0,gr96,gr116
63
        cpneq gr96,gr96,lr6
64
        jmpf gr96,L7
65
        sll lr2,lr5,0
66
        sll lr3,lr10,0
67
        calli lr0,lr7
68
        const lr4,0
69
        cpneq gr96,gr96,lr6
70
        jmpt gr96,L8
71
        const gr96,0
72
L7:
73
        constn gr96,65535
74
L8:
75
        add gr1,gr1,32
76
        nop
77
        jmpi lr0
78
        asleu V_FILL,lr1,gr127
79
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.