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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [x86/] [linux/] [tst/] [struct.sbk] - Blame information for rev 31

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

Line No. Rev Author Line
1 4 hellwig
.globl addpoint
2
.text
3
.align 16
4
.type addpoint,@function
5
addpoint:
6
pushl %ebp
7
pushl %ebx
8
pushl %esi
9
pushl %edi
10
movl %esp,%ebp
11
movl 32(%ebp),%edi
12
addl %edi,24(%ebp)
13
movl 36(%ebp),%edi
14
addl %edi,28(%ebp)
15
movl 20(%ebp),%edi
16
leal 24(%ebp),%esi
17
movl $8,%ecx
18
rep
19
movsb
20
.LC1:
21
movl %ebp,%esp
22
popl %edi
23
popl %esi
24
popl %ebx
25
popl %ebp
26
ret
27
.Lf5:
28
.size addpoint,.Lf5-addpoint
29
.globl canonrect
30
.align 16
31
.type canonrect,@function
32
canonrect:
33
pushl %ebp
34
pushl %ebx
35
pushl %esi
36
pushl %edi
37
movl %esp,%ebp
38
subl $32,%esp
39
movl 32(%ebp),%edi
40
cmpl %edi,24(%ebp)
41
jge .LC11
42
movl 24(%ebp),%edi
43
movl %edi,-20(%ebp)
44
jmp .LC12
45
.LC11:
46
movl 32(%ebp),%edi
47
movl %edi,-20(%ebp)
48
.LC12:
49
movl -20(%ebp),%edi
50
movl %edi,-16(%ebp)
51
movl 36(%ebp),%edi
52
cmpl %edi,28(%ebp)
53
jge .LC21
54
movl 28(%ebp),%edi
55
movl %edi,-24(%ebp)
56
jmp .LC22
57
.LC21:
58
movl 36(%ebp),%edi
59
movl %edi,-24(%ebp)
60
.LC22:
61
movl -24(%ebp),%edi
62
movl %edi,-12(%ebp)
63
movl 32(%ebp),%edi
64
cmpl %edi,24(%ebp)
65
jle .LC27
66
movl 24(%ebp),%edi
67
movl %edi,-28(%ebp)
68
jmp .LC28
69
.LC27:
70
movl 32(%ebp),%edi
71
movl %edi,-28(%ebp)
72
.LC28:
73
movl -28(%ebp),%edi
74
movl %edi,-8(%ebp)
75
movl 36(%ebp),%edi
76
cmpl %edi,28(%ebp)
77
jle .LC38
78
movl 28(%ebp),%edi
79
movl %edi,-32(%ebp)
80
jmp .LC39
81
.LC38:
82
movl 36(%ebp),%edi
83
movl %edi,-32(%ebp)
84
.LC39:
85
movl -32(%ebp),%edi
86
movl %edi,-4(%ebp)
87
movl 20(%ebp),%edi
88
leal -16(%ebp),%esi
89
movl $16,%ecx
90
rep
91
movsb
92
.LC6:
93
movl %ebp,%esp
94
popl %edi
95
popl %esi
96
popl %ebx
97
popl %ebp
98
ret
99
.Lf40:
100
.size canonrect,.Lf40-canonrect
101
.globl makepoint
102
.align 16
103
.type makepoint,@function
104
makepoint:
105
pushl %ebp
106
pushl %ebx
107
pushl %esi
108
pushl %edi
109
movl %esp,%ebp
110
subl $8,%esp
111
movl 24(%ebp),%edi
112
movl %edi,-8(%ebp)
113
movl 28(%ebp),%edi
114
movl %edi,-4(%ebp)
115
movl 20(%ebp),%edi
116
leal -8(%ebp),%esi
117
movl $8,%ecx
118
rep
119
movsb
120
.LC41:
121
movl %ebp,%esp
122
popl %edi
123
popl %esi
124
popl %ebx
125
popl %ebp
126
ret
127
.Lf44:
128
.size makepoint,.Lf44-makepoint
129
.globl makerect
130
.align 16
131
.type makerect,@function
132
makerect:
133
pushl %ebp
134
pushl %ebx
135
pushl %esi
136
pushl %edi
137
movl %esp,%ebp
138
subl $16,%esp
139
leal -16(%ebp),%edi
140
leal 24(%ebp),%esi
141
movl $8,%ecx
142
rep
143
movsb
144
leal -8(%ebp),%edi
145
leal 32(%ebp),%esi
146
movl $8,%ecx
147
rep
148
movsb
149
leal -16(%ebp),%esi
150
subl $16,%esp
151
movl %esp,%edi
152
movl $16,%ecx
153
rep
154
movsb
155
pushl 20(%ebp)
156
call canonrect
157
addl $20,%esp
158
.LC45:
159
movl %ebp,%esp
160
popl %edi
161
popl %esi
162
popl %ebx
163
popl %ebp
164
ret
165
.Lf48:
166
.size makerect,.Lf48-makerect
167
.globl ptinrect
168
.align 16
169
.type ptinrect,@function
170
ptinrect:
171
pushl %ebp
172
pushl %ebx
173
pushl %esi
174
pushl %edi
175
movl %esp,%ebp
176
subl $4,%esp
177
movl 20(%ebp),%edi
178
cmpl 28(%ebp),%edi
179
jl .LC57
180
cmpl 36(%ebp),%edi
181
jge .LC57
182
movl 32(%ebp),%edi
183
cmpl %edi,24(%ebp)
184
jl .LC57
185
movl 40(%ebp),%edi
186
cmpl %edi,24(%ebp)
187
jge .LC57
188
movl $1,-4(%ebp)
189
jmp .LC58
190
.LC57:
191
movl $0,-4(%ebp)
192
.LC58:
193
movl -4(%ebp),%eax
194
.LC49:
195
movl %ebp,%esp
196
popl %edi
197
popl %esi
198
popl %ebx
199
popl %ebp
200
ret
201
.Lf59:
202
.size ptinrect,.Lf59-ptinrect
203
.data
204
.globl y
205
.align 1
206
.type y,@object
207
.size y,3
208
y:
209
.byte 97
210
.byte 98
211
.byte 0
212
.globl odd
213
.text
214
.align 16
215
.type odd,@function
216
odd:
217
pushl %ebp
218
pushl %ebx
219
pushl %esi
220
pushl %edi
221
movl %esp,%ebp
222
subl $4,%esp
223
leal -4(%ebp),%edi
224
leal 20(%ebp),%esi
225
movl $3,%ecx
226
rep
227
movsb
228
leal -4(%ebp),%edi
229
pushl %edi
230
pushl $.LC61
231
call printf
232
addl $8,%esp
233
mov $0,%eax
234
.LC60:
235
movl %ebp,%esp
236
popl %edi
237
popl %esi
238
popl %ebx
239
popl %ebp
240
ret
241
.Lf62:
242
.size odd,.Lf62-odd
243
.data
244
.align 4
245
.LC64:
246
.long 0
247
.long 0
248
.align 4
249
.LC65:
250
.long 320
251
.long 320
252
.align 4
253
.LC66:
254
.long -1
255
.long -1
256
.long 1
257
.long 1
258
.long 20
259
.long 300
260
.long 500
261
.long 400
262
.globl main
263
.text
264
.align 16
265
.type main,@function
266
main:
267
pushl %ebp
268
pushl %ebx
269
pushl %esi
270
pushl %edi
271
movl %esp,%ebp
272
subl $108,%esp
273
leal -68(%ebp),%edi
274
leal .LC64,%esi
275
movl $8,%ecx
276
rep
277
movsb
278
leal -76(%ebp),%edi
279
leal .LC65,%esi
280
movl $8,%ecx
281
rep
282
movsb
283
leal -36(%ebp),%edi
284
leal .LC66,%esi
285
movl $32,%ecx
286
rep
287
movsb
288
pushl $-10
289
pushl $-10
290
leal -84(%ebp),%edi
291
pushl %edi
292
call makepoint
293
addl $12,%esp
294
leal -84(%ebp),%esi
295
subl $8,%esp
296
movl %esp,%edi
297
movl $8,%ecx
298
rep
299
movsb
300
leal -76(%ebp),%esi
301
subl $8,%esp
302
movl %esp,%edi
303
movl $8,%ecx
304
rep
305
movsb
306
leal -92(%ebp),%edi
307
pushl %edi
308
call addpoint
309
addl $20,%esp
310
pushl $10
311
pushl $10
312
leal -100(%ebp),%edi
313
pushl %edi
314
call makepoint
315
addl $12,%esp
316
leal -100(%ebp),%esi
317
subl $8,%esp
318
movl %esp,%edi
319
movl $8,%ecx
320
rep
321
movsb
322
leal -68(%ebp),%esi
323
subl $8,%esp
324
movl %esp,%edi
325
movl $8,%ecx
326
rep
327
movsb
328
leal -108(%ebp),%edi
329
pushl %edi
330
call addpoint
331
addl $20,%esp
332
leal -108(%ebp),%esi
333
subl $8,%esp
334
movl %esp,%edi
335
movl $8,%ecx
336
rep
337
movsb
338
leal -92(%ebp),%esi
339
subl $8,%esp
340
movl %esp,%edi
341
movl $8,%ecx
342
rep
343
movsb
344
leal -52(%ebp),%edi
345
pushl %edi
346
call makerect
347
addl $20,%esp
348
movl $0,-4(%ebp)
349
jmp .LC70
350
.LC67:
351
movl -4(%ebp),%edi
352
leal (,%edi,8),%edi
353
leal -32(%ebp),%esi
354
pushl (%esi,%edi)
355
leal -36(%ebp),%esi
356
pushl (%esi,%edi)
357
leal -60(%ebp),%edi
358
pushl %edi
359
call makepoint
360
addl $12,%esp
361
pushl -56(%ebp)
362
movl -4(%ebp),%edi
363
leal -36(%ebp),%esi
364
pushl (%esi,%edi,8)
365
pushl $.LC71
366
call printf
367
addl $12,%esp
368
leal -52(%ebp),%esi
369
subl $16,%esp
370
movl %esp,%edi
371
movl $16,%ecx
372
rep
373
movsb
374
leal -60(%ebp),%esi
375
subl $8,%esp
376
movl %esp,%edi
377
movl $8,%ecx
378
rep
379
movsb
380
call ptinrect
381
addl $24,%esp
382
cmpl $0,%eax
383
jne .LC74
384
pushl $.LC76
385
call printf
386
addl $4,%esp
387
.LC74:
388
pushl -40(%ebp)
389
pushl -44(%ebp)
390
pushl -48(%ebp)
391
pushl -52(%ebp)
392
pushl $.LC77
393
call printf
394
addl $20,%esp
395
.LC68:
396
incl -4(%ebp)
397
.LC70:
398
movl -4(%ebp),%edi
399
cmpl $4,%edi
400
jb .LC67
401
leal y,%esi
402
subl $4,%esp
403
movl %esp,%edi
404
movl $3,%ecx
405
rep
406
movsb
407
call odd
408
addl $3,%esp
409
pushl $0
410
call exit
411
addl $4,%esp
412
mov $0,%eax
413
.LC63:
414
movl %ebp,%esp
415
popl %edi
416
popl %esi
417
popl %ebx
418
popl %ebp
419
ret
420
.Lf82:
421
.size main,.Lf82-main
422
.data
423
.align 1
424
.LC77:
425
.byte 119
426
.byte 105
427
.byte 116
428
.byte 104
429
.byte 105
430
.byte 110
431
.byte 32
432
.byte 91
433
.byte 37
434
.byte 100
435
.byte 44
436
.byte 37
437
.byte 100
438
.byte 59
439
.byte 32
440
.byte 37
441
.byte 100
442
.byte 44
443
.byte 37
444
.byte 100
445
.byte 93
446
.byte 10
447
.byte 0
448
.align 1
449
.LC76:
450
.byte 110
451
.byte 111
452
.byte 116
453
.byte 32
454
.byte 0
455
.align 1
456
.LC71:
457
.byte 40
458
.byte 37
459
.byte 100
460
.byte 44
461
.byte 37
462
.byte 100
463
.byte 41
464
.byte 32
465
.byte 105
466
.byte 115
467
.byte 32
468
.byte 0
469
.align 1
470
.LC61:
471
.byte 37
472
.byte 115
473
.byte 10
474
.byte 0
475
.text
476
.ident "LCC: 4.1"

powered by: WebSVN 2.1.0

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