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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [sparc/] [solaris/] [tst/] [init.sbk] - Blame information for rev 82

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
.section ".data"
2
.global words
3
.type words,#object
4
.align 4
5
words:
6
.word 0x1
7
.word 0x2
8
.word 0x3
9
.byte 105
10
.byte 102
11
.byte 0
12
.skip 3
13
.skip 2
14
.word 0x4
15
.word 0x5
16
.skip 4
17
.byte 102
18
.byte 111
19
.byte 114
20
.skip 3
21
.skip 2
22
.word 0x6
23
.word 0x7
24
.word 0x8
25
.byte 101
26
.byte 108
27
.byte 115
28
.byte 101
29
.byte 0
30
.skip 1
31
.skip 2
32
.word 0x9
33
.word 0xa
34
.word 0xb
35
.byte 119
36
.byte 104
37
.byte 105
38
.byte 108
39
.byte 101
40
.skip 1
41
.skip 2
42
.word 0x0
43
.skip 8
44
.skip 8
45
.size words,100
46
.global wordlist
47
.type wordlist,#object
48
.size wordlist,4
49
.align 4
50
wordlist:
51
.word words
52
.global x
53
.type x,#object
54
.align 4
55
x:
56
.word 0x1
57
.word 0x2
58
.word 0x3
59
.word 0x4
60
.word 0x0
61
.word 0x5
62
.word 0x6
63
.skip 12
64
.word 0x7
65
.skip 16
66
.size x,60
67
.global y
68
.type y,#object
69
.align 4
70
y:
71
.word x
72
.word x+20
73
.word x+40
74
.word 0x0
75
.size y,16
76
.global main
77
.section ".text"
78
.align 4
79
main:
80
save %sp,-96,%sp
81
mov %g0,%i4
82
ba .L8; nop
83
.L5:
84
mov %g0,%i5
85
ba .L12; nop
86
.L9:
87
set .L13,%o0
88
sll %i5,2,%i3
89
sll %i4,2,%i2
90
set y,%i1
91
ld [%i2+%i1],%i2
92
ld [%i3+%i2],%o1
93
call printf; nop
94
.L10:
95
add %i5,1,%i5
96
.L12:
97
sll %i5,2,%i3
98
sll %i4,2,%i2
99
set y,%i1
100
ld [%i2+%i1],%i2
101
ld [%i3+%i2],%i3
102
cmp %i3,0; bne .L9; nop
103
set .L14,%o0
104
call printf; nop
105
.L6:
106
add %i4,1,%i4
107
.L8:
108
sll %i4,2,%i3
109
set y,%i2
110
ld [%i3+%i2],%i3
111
cmp %i3,%g0; bne .L5; nop
112
call f; nop
113
set wordlist,%i3
114
ld [%i3],%o0
115
call g; nop
116
mov %g0,%i0
117
.L4:
118
ret; restore
119
.type main,#function
120
.size main,.-main
121
.section ".data"
122
.type .16,#object
123
.align 4
124
.16:
125
.word .L17
126
.word .L18
127
.word .L19
128
.word .L20
129
.word 0x0
130
.size .16,20
131
.global f
132
.section ".text"
133
.align 4
134
f:
135
save %sp,-96,%sp
136
set .16,%i5
137
ba .L24; nop
138
.L21:
139
set .L25,%o0
140
ld [%i5],%o1
141
call printf; nop
142
.L22:
143
add %i5,4,%i5
144
.L24:
145
ld [%i5],%i4
146
cmp %i4,%g0; bne .L21; nop
147
mov %g0,%i0
148
.L15:
149
ret; restore
150
.type f,#function
151
.size f,.-f
152
.global g
153
.align 4
154
g:
155
save %sp,-96,%sp
156
ba .L30; nop
157
.L27:
158
mov %g0,%i5
159
ba .L34; nop
160
.L31:
161
set .L35,%o0
162
sll %i5,2,%i4
163
ld [%i4+%i0],%o1
164
call printf; nop
165
.L32:
166
add %i5,1,%i5
167
.L34:
168
mov %i5,%i4
169
set 3,%i3
170
cmp %i4,%i3; blu .L31; nop
171
set .L25,%o0
172
add %i0,12,%o1
173
call printf; nop
174
.L28:
175
add %i0,20,%i0
176
.L30:
177
ld [%i0],%i4
178
cmp %i4,0; bne .L27; nop
179
call h; nop
180
mov %g0,%i0
181
.L26:
182
ret; restore
183
.type g,#function
184
.size g,.-g
185
.global h
186
.align 4
187
h:
188
save %sp,-96,%sp
189
mov %g0,%i5
190
ba .L40; nop
191
.L37:
192
set .L41,%o0
193
smul %i5,20,%i4
194
set words,%i3
195
ld [%i4+%i3],%o1
196
set words+4,%i3
197
ld [%i4+%i3],%o2
198
set words+8,%i3
199
ld [%i4+%i3],%o3
200
set words+12,%i3
201
add %i4,%i3,%o4
202
call printf; nop
203
.L38:
204
add %i5,1,%i5
205
.L40:
206
mov %i5,%i4
207
set 5,%i3
208
cmp %i4,%i3; blu .L37; nop
209
mov %g0,%i0
210
.L36:
211
ret; restore
212
.type h,#function
213
.size h,.-h
214
.section ".rodata"
215
.align 1
216
.L41:
217
.byte 37
218
.byte 100
219
.byte 32
220
.byte 37
221
.byte 100
222
.byte 32
223
.byte 37
224
.byte 100
225
.byte 32
226
.byte 37
227
.byte 115
228
.byte 10
229
.byte 0
230
.align 1
231
.L35:
232
.byte 37
233
.byte 100
234
.byte 32
235
.byte 0
236
.align 1
237
.L25:
238
.byte 37
239
.byte 115
240
.byte 10
241
.byte 0
242
.align 1
243
.L20:
244
.byte 119
245
.byte 104
246
.byte 105
247
.byte 108
248
.byte 101
249
.byte 0
250
.align 1
251
.L19:
252
.byte 101
253
.byte 108
254
.byte 115
255
.byte 101
256
.byte 0
257
.align 1
258
.L18:
259
.byte 102
260
.byte 111
261
.byte 114
262
.byte 0
263
.align 1
264
.L17:
265
.byte 105
266
.byte 102
267
.byte 0
268
.align 1
269
.L14:
270
.byte 10
271
.byte 0
272
.align 1
273
.L13:
274
.byte 32
275
.byte 37
276
.byte 100
277
.byte 0

powered by: WebSVN 2.1.0

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