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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [x86/] [win32/] [tst/] [cvt.sbk] - Blame information for rev 57

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

Line No. Rev Author Line
1 4 hellwig
.486
2
.model flat
3
extrn __fltused:near
4
extrn __ftol:near
5
public _print
6
_TEXT segment
7
_print:
8
push ebx
9
push esi
10
push edi
11
push ebp
12
mov ebp,esp
13
fld qword ptr (_D)
14
sub esp,8
15
fstp qword ptr [esp]
16
fld qword ptr (_d)
17
sub esp,8
18
fstp qword ptr [esp]
19
fld dword ptr (_f)
20
sub esp,8
21
fstp qword ptr [esp]
22
mov edi,dword ptr (_L)
23
push edi
24
mov edi,dword ptr (_I)
25
push edi
26
mov di,word ptr (_S)
27
movzx edi,di
28
push edi
29
mov bl,byte ptr (_C)
30
movzx edi,bl
31
push edi
32
mov edi,dword ptr (_l)
33
push edi
34
mov edi,dword ptr (_i)
35
push edi
36
movsx edi,word ptr (_s)
37
push edi
38
movsx edi,byte ptr (_c)
39
push edi
40
lea edi,(L2)
41
push edi
42
call _printf
43
add esp,60
44
L1:
45
mov esp,ebp
46
pop ebp
47
pop edi
48
pop esi
49
pop ebx
50
ret
51
public _main
52
_main:
53
push ebx
54
push esi
55
push edi
56
push ebp
57
mov ebp,esp
58
sub esp,296
59
mov byte ptr (_c),1
60
movsx edi,byte ptr (_c)
61
mov esi,edi
62
mov word ptr (_s),si
63
mov dword ptr (_i),edi
64
mov dword ptr (_l),edi
65
mov esi,edi
66
mov ebx,esi
67
mov byte ptr (_C),bl
68
mov ebx,esi
69
mov word ptr (_S),bx
70
mov dword ptr (_I),esi
71
mov dword ptr (_L),esi
72
push edi
73
fild dword ptr 0[esp]
74
add esp,4
75
fstp dword ptr (_f)
76
push edi
77
fild dword ptr 0[esp]
78
add esp,4
79
fstp qword ptr (-8)[ebp]
80
fld qword ptr (-8)[ebp]
81
fstp qword ptr (_d)
82
fld qword ptr (-8)[ebp]
83
fstp qword ptr (_D)
84
call _print
85
add esp,0
86
mov word ptr (_s),2
87
movsx edi,word ptr (_s)
88
mov ebx,edi
89
mov byte ptr (_c),bl
90
mov dword ptr (_i),edi
91
mov dword ptr (_l),edi
92
mov esi,edi
93
mov ebx,esi
94
mov byte ptr (_C),bl
95
mov ebx,esi
96
mov word ptr (_S),bx
97
mov dword ptr (_I),esi
98
mov dword ptr (_L),esi
99
push edi
100
fild dword ptr 0[esp]
101
add esp,4
102
fstp dword ptr (_f)
103
push edi
104
fild dword ptr 0[esp]
105
add esp,4
106
fstp qword ptr (-16)[ebp]
107
fld qword ptr (-16)[ebp]
108
fstp qword ptr (_d)
109
fld qword ptr (-16)[ebp]
110
fstp qword ptr (_D)
111
call _print
112
add esp,0
113
mov dword ptr (_i),3
114
mov edi,dword ptr (_i)
115
mov ebx,edi
116
mov byte ptr (_c),bl
117
mov esi,edi
118
mov word ptr (_s),si
119
mov dword ptr (_l),edi
120
mov esi,edi
121
mov ebx,esi
122
mov byte ptr (_C),bl
123
mov ebx,esi
124
mov word ptr (_S),bx
125
mov dword ptr (_I),esi
126
mov dword ptr (_L),esi
127
push edi
128
fild dword ptr 0[esp]
129
add esp,4
130
fstp dword ptr (_f)
131
push edi
132
fild dword ptr 0[esp]
133
add esp,4
134
fstp qword ptr (-24)[ebp]
135
fld qword ptr (-24)[ebp]
136
fstp qword ptr (_d)
137
fld qword ptr (-24)[ebp]
138
fstp qword ptr (_D)
139
call _print
140
add esp,0
141
mov dword ptr (_l),4
142
mov edi,dword ptr (_l)
143
mov ebx,edi
144
mov byte ptr (_c),bl
145
mov esi,edi
146
mov word ptr (_s),si
147
mov dword ptr (_i),edi
148
mov esi,edi
149
mov ebx,esi
150
mov byte ptr (_C),bl
151
mov ebx,esi
152
mov word ptr (_S),bx
153
mov dword ptr (_I),esi
154
mov dword ptr (_L),esi
155
push edi
156
fild dword ptr 0[esp]
157
add esp,4
158
fstp dword ptr (_f)
159
push edi
160
fild dword ptr 0[esp]
161
add esp,4
162
fstp qword ptr (-32)[ebp]
163
fld qword ptr (-32)[ebp]
164
fstp qword ptr (_d)
165
fld qword ptr (-32)[ebp]
166
fstp qword ptr (_D)
167
call _print
168
add esp,0
169
mov byte ptr (_C),5
170
mov bl,byte ptr (_C)
171
movzx edi,bl
172
mov ebx,edi
173
mov byte ptr (_c),bl
174
mov esi,edi
175
mov word ptr (_s),si
176
mov dword ptr (_i),edi
177
mov dword ptr (_l),edi
178
mov esi,edi
179
mov ebx,esi
180
mov word ptr (_S),bx
181
mov dword ptr (_I),esi
182
mov dword ptr (_L),esi
183
push edi
184
fild dword ptr 0[esp]
185
add esp,4
186
fstp dword ptr (_f)
187
push edi
188
fild dword ptr 0[esp]
189
add esp,4
190
fstp qword ptr (-40)[ebp]
191
fld qword ptr (-40)[ebp]
192
fstp qword ptr (_d)
193
fld qword ptr (-40)[ebp]
194
fstp qword ptr (_D)
195
call _print
196
add esp,0
197
mov word ptr (_S),6
198
mov di,word ptr (_S)
199
movzx edi,di
200
mov ebx,edi
201
mov byte ptr (_c),bl
202
mov esi,edi
203
mov word ptr (_s),si
204
mov dword ptr (_i),edi
205
mov dword ptr (_l),edi
206
mov esi,edi
207
mov ebx,esi
208
mov byte ptr (_C),bl
209
mov dword ptr (_I),esi
210
mov dword ptr (_L),esi
211
push edi
212
fild dword ptr 0[esp]
213
add esp,4
214
fstp dword ptr (_f)
215
push edi
216
fild dword ptr 0[esp]
217
add esp,4
218
fstp qword ptr (-48)[ebp]
219
fld qword ptr (-48)[ebp]
220
fstp qword ptr (_d)
221
fld qword ptr (-48)[ebp]
222
fstp qword ptr (_D)
223
call _print
224
add esp,0
225
mov dword ptr (_I),7
226
mov edi,dword ptr (_I)
227
mov ebx,edi
228
mov byte ptr (_c),bl
229
mov ebx,edi
230
mov word ptr (_s),bx
231
mov dword ptr (_i),edi
232
mov dword ptr (_l),edi
233
mov ebx,edi
234
mov byte ptr (_C),bl
235
mov esi,edi
236
mov word ptr (_S),si
237
mov dword ptr (_L),edi
238
fld qword ptr (L4)
239
mov esi,edi
240
shr esi,1
241
push esi
242
fild dword ptr 0[esp]
243
add esp,4
244
fmulp st(1),st
245
and edi,1
246
push edi
247
fild dword ptr 0[esp]
248
add esp,4
249
faddp st(1),st
250
fstp qword ptr (-56)[ebp]
251
fld qword ptr (-56)[ebp]
252
fstp dword ptr (_f)
253
fld qword ptr (-56)[ebp]
254
fstp qword ptr (_d)
255
fld qword ptr (-56)[ebp]
256
fstp qword ptr (_D)
257
call _print
258
add esp,0
259
mov dword ptr (_L),8
260
mov edi,dword ptr (_L)
261
mov ebx,edi
262
mov byte ptr (_c),bl
263
mov ebx,edi
264
mov word ptr (_s),bx
265
mov dword ptr (_i),edi
266
mov dword ptr (_l),edi
267
mov ebx,edi
268
mov byte ptr (_C),bl
269
mov esi,edi
270
mov word ptr (_S),si
271
mov si,word ptr (_S)
272
movzx esi,si
273
mov dword ptr (_I),esi
274
fld qword ptr (L4)
275
mov esi,edi
276
shr esi,1
277
push esi
278
fild dword ptr 0[esp]
279
add esp,4
280
fmulp st(1),st
281
and edi,1
282
push edi
283
fild dword ptr 0[esp]
284
add esp,4
285
faddp st(1),st
286
fstp qword ptr (-64)[ebp]
287
fld qword ptr (-64)[ebp]
288
fstp dword ptr (_f)
289
fld qword ptr (-64)[ebp]
290
fstp qword ptr (_d)
291
fld qword ptr (-64)[ebp]
292
fstp qword ptr (_D)
293
call _print
294
add esp,0
295
fld dword ptr (L5)
296
fstp dword ptr (_f)
297
fld dword ptr (_f)
298
fstp dword ptr (-84)[ebp]
299
fld dword ptr (-84)[ebp]
300
call __ftol
301
mov edi,eax
302
mov ebx,edi
303
mov byte ptr (_c),bl
304
mov esi,edi
305
mov word ptr (_s),si
306
mov dword ptr (_i),edi
307
mov dword ptr (_l),edi
308
fld dword ptr (L9)
309
fcomp dword ptr (-84)[ebp]
310
fstsw ax
311
sahf
312
jp L7
313
ja L7
314
fld dword ptr (-84)[ebp]
315
fsub dword ptr (L9)
316
call __ftol
317
mov edi,eax
318
lea edi,(080000000H)[edi]
319
mov dword ptr (-68)[ebp],edi
320
jmp L8
321
L7:
322
fld dword ptr (-84)[ebp]
323
call __ftol
324
mov edi,eax
325
mov dword ptr (-68)[ebp],edi
326
L8:
327
mov edi,dword ptr (-68)[ebp]
328
mov ebx,edi
329
mov byte ptr (_C),bl
330
fld dword ptr (L9)
331
fcomp dword ptr (_f)
332
fstsw ax
333
sahf
334
jp L11
335
ja L11
336
fld dword ptr (_f)
337
fsub dword ptr (L9)
338
call __ftol
339
mov edi,eax
340
lea edi,(080000000H)[edi]
341
mov dword ptr (-72)[ebp],edi
342
jmp L12
343
L11:
344
fld dword ptr (_f)
345
call __ftol
346
mov edi,eax
347
mov dword ptr (-72)[ebp],edi
348
L12:
349
mov edi,dword ptr (-72)[ebp]
350
mov word ptr (_S),di
351
fld dword ptr (L9)
352
fcomp dword ptr (_f)
353
fstsw ax
354
sahf
355
jp L14
356
ja L14
357
fld dword ptr (_f)
358
fsub dword ptr (L9)
359
call __ftol
360
mov edi,eax
361
lea edi,(080000000H)[edi]
362
mov dword ptr (-76)[ebp],edi
363
jmp L15
364
L14:
365
fld dword ptr (_f)
366
call __ftol
367
mov edi,eax
368
mov dword ptr (-76)[ebp],edi
369
L15:
370
mov edi,dword ptr (-76)[ebp]
371
mov dword ptr (_I),edi
372
fld dword ptr (L9)
373
fcomp dword ptr (_f)
374
fstsw ax
375
sahf
376
jp L17
377
ja L17
378
fld dword ptr (_f)
379
fsub dword ptr (L9)
380
call __ftol
381
mov edi,eax
382
lea edi,(080000000H)[edi]
383
mov dword ptr (-80)[ebp],edi
384
jmp L18
385
L17:
386
fld dword ptr (_f)
387
call __ftol
388
mov edi,eax
389
mov dword ptr (-80)[ebp],edi
390
L18:
391
mov edi,dword ptr (-80)[ebp]
392
mov dword ptr (_L),edi
393
fld dword ptr (_f)
394
fstp qword ptr (-120)[ebp]
395
fld qword ptr (-120)[ebp]
396
fstp qword ptr (_d)
397
fld qword ptr (-120)[ebp]
398
fstp qword ptr (_D)
399
call _print
400
add esp,0
401
fld qword ptr (L19)
402
fstp qword ptr (_d)
403
fld qword ptr (_d)
404
fstp qword ptr (-144)[ebp]
405
fld qword ptr (-144)[ebp]
406
call __ftol
407
mov edi,eax
408
mov ebx,edi
409
mov byte ptr (_c),bl
410
mov esi,edi
411
mov word ptr (_s),si
412
mov dword ptr (_i),edi
413
mov dword ptr (_l),edi
414
fld qword ptr (L23)
415
fcomp qword ptr (-144)[ebp]
416
fstsw ax
417
sahf
418
jp L21
419
ja L21
420
fld qword ptr (-144)[ebp]
421
fsub qword ptr (L23)
422
call __ftol
423
mov edi,eax
424
lea edi,(080000000H)[edi]
425
mov dword ptr (-124)[ebp],edi
426
jmp L22
427
L21:
428
fld qword ptr (-144)[ebp]
429
call __ftol
430
mov edi,eax
431
mov dword ptr (-124)[ebp],edi
432
L22:
433
mov edi,dword ptr (-124)[ebp]
434
mov ebx,edi
435
mov byte ptr (_C),bl
436
fld qword ptr (L23)
437
fcomp qword ptr (_d)
438
fstsw ax
439
sahf
440
jp L25
441
ja L25
442
fld qword ptr (_d)
443
fsub qword ptr (L23)
444
call __ftol
445
mov edi,eax
446
lea edi,(080000000H)[edi]
447
mov dword ptr (-128)[ebp],edi
448
jmp L26
449
L25:
450
fld qword ptr (_d)
451
call __ftol
452
mov edi,eax
453
mov dword ptr (-128)[ebp],edi
454
L26:
455
mov edi,dword ptr (-128)[ebp]
456
mov word ptr (_S),di
457
fld qword ptr (L23)
458
fcomp qword ptr (_d)
459
fstsw ax
460
sahf
461
jp L28
462
ja L28
463
fld qword ptr (_d)
464
fsub qword ptr (L23)
465
call __ftol
466
mov edi,eax
467
lea edi,(080000000H)[edi]
468
mov dword ptr (-132)[ebp],edi
469
jmp L29
470
L28:
471
fld qword ptr (_d)
472
call __ftol
473
mov edi,eax
474
mov dword ptr (-132)[ebp],edi
475
L29:
476
mov edi,dword ptr (-132)[ebp]
477
mov dword ptr (_I),edi
478
fld qword ptr (L23)
479
fcomp qword ptr (_d)
480
fstsw ax
481
sahf
482
jp L31
483
ja L31
484
fld qword ptr (_d)
485
fsub qword ptr (L23)
486
call __ftol
487
mov edi,eax
488
lea edi,(080000000H)[edi]
489
mov dword ptr (-136)[ebp],edi
490
jmp L32
491
L31:
492
fld qword ptr (_d)
493
call __ftol
494
mov edi,eax
495
mov dword ptr (-136)[ebp],edi
496
L32:
497
mov edi,dword ptr (-136)[ebp]
498
mov dword ptr (_L),edi
499
fld qword ptr (_d)
500
fstp dword ptr (_f)
501
fld qword ptr (_d)
502
fstp qword ptr (_D)
503
call _print
504
add esp,0
505
fld qword ptr (L33)
506
fstp qword ptr (_D)
507
fld qword ptr (_D)
508
fstp qword ptr (-232)[ebp]
509
fld qword ptr (-232)[ebp]
510
call __ftol
511
mov edi,eax
512
mov ebx,edi
513
mov byte ptr (_c),bl
514
mov esi,edi
515
mov word ptr (_s),si
516
mov dword ptr (_i),edi
517
mov dword ptr (_l),edi
518
fld qword ptr (L37)
519
fcomp qword ptr (-232)[ebp]
520
fstsw ax
521
sahf
522
jp L35
523
ja L35
524
fld qword ptr (-232)[ebp]
525
fsub qword ptr (L37)
526
call __ftol
527
mov edi,eax
528
lea edi,(080000000H)[edi]
529
mov dword ptr (-212)[ebp],edi
530
jmp L36
531
L35:
532
fld qword ptr (-232)[ebp]
533
call __ftol
534
mov edi,eax
535
mov dword ptr (-212)[ebp],edi
536
L36:
537
mov edi,dword ptr (-212)[ebp]
538
mov ebx,edi
539
mov byte ptr (_C),bl
540
fld qword ptr (L37)
541
fcomp qword ptr (_D)
542
fstsw ax
543
sahf
544
jp L39
545
ja L39
546
fld qword ptr (_D)
547
fsub qword ptr (L37)
548
call __ftol
549
mov edi,eax
550
lea edi,(080000000H)[edi]
551
mov dword ptr (-216)[ebp],edi
552
jmp L40
553
L39:
554
fld qword ptr (_D)
555
call __ftol
556
mov edi,eax
557
mov dword ptr (-216)[ebp],edi
558
L40:
559
mov edi,dword ptr (-216)[ebp]
560
mov word ptr (_S),di
561
fld qword ptr (L37)
562
fcomp qword ptr (_D)
563
fstsw ax
564
sahf
565
jp L42
566
ja L42
567
fld qword ptr (_D)
568
fsub qword ptr (L37)
569
call __ftol
570
mov edi,eax
571
lea edi,(080000000H)[edi]
572
mov dword ptr (-220)[ebp],edi
573
jmp L43
574
L42:
575
fld qword ptr (_D)
576
call __ftol
577
mov edi,eax
578
mov dword ptr (-220)[ebp],edi
579
L43:
580
mov edi,dword ptr (-220)[ebp]
581
mov dword ptr (_I),edi
582
fld qword ptr (L37)
583
fcomp qword ptr (_D)
584
fstsw ax
585
sahf
586
jp L45
587
ja L45
588
fld qword ptr (_D)
589
fsub qword ptr (L37)
590
call __ftol
591
mov edi,eax
592
lea edi,(080000000H)[edi]
593
mov dword ptr (-224)[ebp],edi
594
jmp L46
595
L45:
596
fld qword ptr (_D)
597
call __ftol
598
mov edi,eax
599
mov dword ptr (-224)[ebp],edi
600
L46:
601
mov edi,dword ptr (-224)[ebp]
602
mov dword ptr (_L),edi
603
fld qword ptr (_D)
604
fstp dword ptr (_f)
605
fld qword ptr (_D)
606
fstp qword ptr (_d)
607
call _print
608
add esp,0
609
mov dword ptr (_p),0
610
mov dword ptr (_p),0
611
mov dword ptr (_p),0
612
mov dword ptr (_p),0
613
mov edi,dword ptr (_P)
614
mov dword ptr (_p),edi
615
mov dword ptr (_P),0
616
mov dword ptr (_P),0
617
mov dword ptr (_P),0
618
mov dword ptr (_P),0
619
mov edi,dword ptr (_p)
620
mov dword ptr (_P),edi
621
mov eax,0
622
L3:
623
mov esp,ebp
624
pop ebp
625
pop edi
626
pop esi
627
pop ebx
628
ret
629
_TEXT ends
630
extrn _printf:near
631
_TEXT segment
632
_TEXT ends
633
_DATA segment
634
public _P
635
align 4
636
_P label byte
637
db 4 dup (0)
638
public _p
639
align 4
640
_p label byte
641
db 4 dup (0)
642
public _D
643
align 4
644
_D label byte
645
db 8 dup (0)
646
public _d
647
align 4
648
_d label byte
649
db 8 dup (0)
650
public _f
651
align 4
652
_f label byte
653
db 4 dup (0)
654
public _L
655
align 4
656
_L label byte
657
db 4 dup (0)
658
public _I
659
align 4
660
_I label byte
661
db 4 dup (0)
662
public _S
663
align 2
664
_S label byte
665
db 2 dup (0)
666
public _C
667
align 1
668
_C label byte
669
db 1 dup (0)
670
public _l
671
align 4
672
_l label byte
673
db 4 dup (0)
674
public _i
675
align 4
676
_i label byte
677
db 4 dup (0)
678
public _s
679
align 2
680
_s label byte
681
db 2 dup (0)
682
public _c
683
align 1
684
_c label byte
685
db 1 dup (0)
686
_DATA ends
687
_TEXT segment
688
align 4
689
L37 label byte
690
dd 00H
691
dd 041e00000H
692
align 4
693
L33 label byte
694
dd 00H
695
dd 040260000H
696
align 4
697
L23 label byte
698
dd 00H
699
dd 041e00000H
700
align 4
701
L19 label byte
702
dd 00H
703
dd 040240000H
704
align 4
705
L9 label byte
706
dd 04f000000H
707
align 4
708
L5 label byte
709
dd 041100000H
710
align 4
711
L4 label byte
712
dd 00H
713
dd 040000000H
714
align 1
715
L2 label byte
716
db 37
717
db 100
718
db 32
719
db 37
720
db 100
721
db 32
722
db 37
723
db 100
724
db 32
725
db 37
726
db 108
727
db 100
728
db 32
729
db 37
730
db 117
731
db 32
732
db 37
733
db 117
734
db 32
735
db 37
736
db 117
737
db 32
738
db 37
739
db 108
740
db 117
741
db 32
742
db 37
743
db 102
744
db 32
745
db 37
746
db 102
747
db 32
748
db 37
749
db 108
750
db 102
751
db 10
752
db 0
753
_TEXT ends
754
end

powered by: WebSVN 2.1.0

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