source: trunk/libs/newlib/src/newlib/libc/sys/a29khif/_fstat.S

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.3 KB
Line 
1        .file "_fstat.c"
2        .sect .lit,lit
3gcc2_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
31L3:
32        const gr117,8192
33        store 0,0,gr117,gr116
34        add gr116,lr11,4
35        store 0,0,gr117,gr116
36L4:
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
72L7:
73        constn gr96,65535
74L8:
75        add gr1,gr1,32
76        nop
77        jmpi lr0
78        asleu V_FILL,lr1,gr127
79
Note: See TracBrowser for help on using the repository browser.