Welcome to mirror list, hosted at ThFree Co, Russian Federation.

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