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

Subversion Repositories yacc

[/] [yacc/] [trunk/] [syn/] [c_src/] [count/] [count_tak.s] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 tak.sugawa
        .file   1 "count_tak.c"
2
 
3
 # -G value = 8, Cpu = 3000, ISA = 1
4
 # GNU C version egcs-2.90.23 980102 (egcs-1.0.1 release) (sde) [AL 1.1, MM 40] Algorithmics SDE-MIPS v4.0.5 compiled by GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
5
 # options passed:  -O2 -O -Wall
6
 # options enabled:  -fdefer-pop -fomit-frame-pointer -fthread-jumps
7
 # -fpeephole -finline -fkeep-static-consts -fpcc-struct-return
8
 # -fdelayed-branch -fcommon -fverbose-asm -fgnu-linker -falias-check
9
 # -fargument-alias -msplit-addresses -mgas -mrnames -mgpOPT -mgpopt
10
 # -membedded-data -meb -mmad -marg32 -mdebugh -mdebugi -mmadd -mno-gpconst
11
 # -mcpu=3000
12
 
13
gcc2_compiled.:
14
        .globl  name
15
        .data
16
        .align  0
17
        .align  2
18
name:
19
        .word   .LC0
20
        .word   .LC1
21
        .word   .LC2
22
        .word   .LC3
23
        .word   .LC4
24
        .word   .LC5
25
        .word   .LC6
26
        .word   .LC7
27
        .word   .LC8
28
        .word   .LC9
29
        .word   .LC10
30
        .word   .LC11
31
        .word   .LC12
32
        .word   .LC13
33
        .word   .LC14
34
        .word   .LC15
35
        .word   .LC16
36
        .word   .LC17
37
        .word   .LC18
38
        .word   .LC19
39
        .word   .LC0
40
        .word   .LC10
41
        .word   .LC20
42
        .word   .LC21
43
        .word   .LC22
44
        .word   .LC23
45
        .word   .LC24
46
        .word   .LC25
47
        .word   .LC26
48
        .word   .LC27
49
        .rdata
50
        .align  0
51
        .align  2
52
.LC27:
53
        .ascii  "ninety\000"
54
        .align  2
55
.LC26:
56
        .ascii  "eighty\000"
57
        .align  2
58
.LC25:
59
        .ascii  "seventy\000"
60
        .align  2
61
.LC24:
62
        .ascii  "sixty\000"
63
        .align  2
64
.LC23:
65
        .ascii  "fifty\000"
66
        .align  2
67
.LC22:
68
        .ascii  "forty\000"
69
        .align  2
70
.LC21:
71
        .ascii  "thirty\000"
72
        .align  2
73
.LC20:
74
        .ascii  "twenty\000"
75
        .align  2
76
.LC19:
77
        .ascii  "nineteen\000"
78
        .align  2
79
.LC18:
80
        .ascii  "eighteen\000"
81
        .align  2
82
.LC17:
83
        .ascii  "seventeen\000"
84
        .align  2
85
.LC16:
86
        .ascii  "sixteen\000"
87
        .align  2
88
.LC15:
89
        .ascii  "fifteen\000"
90
        .align  2
91
.LC14:
92
        .ascii  "fourteen\000"
93
        .align  2
94
.LC13:
95
        .ascii  "thirteen\000"
96
        .align  2
97
.LC12:
98
        .ascii  "twelve\000"
99
        .align  2
100
.LC11:
101
        .ascii  "eleven\000"
102
        .align  2
103
.LC10:
104
        .ascii  "ten\000"
105
        .align  2
106
.LC9:
107
        .ascii  "nine\000"
108
        .align  2
109
.LC8:
110
        .ascii  "eight\000"
111
        .align  2
112
.LC7:
113
        .ascii  "seven\000"
114
        .align  2
115
.LC6:
116
        .ascii  "six\000"
117
        .align  2
118
.LC5:
119
        .ascii  "five\000"
120
        .align  2
121
.LC4:
122
        .ascii  "four\000"
123
        .align  2
124
.LC3:
125
        .ascii  "three\000"
126
        .align  2
127
.LC2:
128
        .ascii  "two\000"
129
        .align  2
130
.LC1:
131
        .ascii  "one\000"
132
        .align  2
133
.LC0:
134
        .ascii  "\000"
135
        .size   name,120
136
 
137
        .lcomm  buf.10,12
138
        .rdata
139
        .align  0
140
        .align  2
141
.LC28:
142
        .ascii  ": \000"
143
        .align  2
144
.LC29:
145
        .ascii  " billion \000"
146
        .align  2
147
.LC30:
148
        .ascii  " hundred \000"
149
        .align  2
150
.LC31:
151
        .ascii  "million \000"
152
        .align  2
153
.LC32:
154
        .ascii  " million \000"
155
        .align  2
156
.LC33:
157
        .ascii  "thousand \000"
158
        .align  2
159
.LC34:
160
        .ascii  " thousand \000"
161
        .rdata
162
        .align  0
163
        .align  2
164
.LC35:
165
        .ascii  "Mult by 3\r\n\000"
166
 
167
        .text
168
        .text
169
        .align  2
170
        .globl  print_uart
171
        .ent    print_uart
172
print_uart:
173
        .frame  $sp,0,$ra                # vars= 0, regs= 0/0, args= 0, extra= 0
174
        .mask   0x00000000,0
175
        .fmask  0x00000000,0
176
        lbu     $v0,0($a0)
177
        beq     $v0,$zero,.L3
178
        li      $v1,16380                       # 0x00003ffc
179
.L5:
180
        #.set   volatile
181
        lw      $v0,0($v1)
182
        #.set   novolatile
183
        andi    $v0,$v0,0x0100
184
        bne     $v0,$zero,.L5
185
        lbu     $v0,0($a0)
186
        #.set   volatile
187
        sb      $v0,0($v1)
188
        #.set   novolatile
189
        addu    $a0,$a0,1
190
        lbu     $v0,0($a0)
191
        bne     $v0,$zero,.L5
192
.L3:
193
        j       $ra
194
        .end    print_uart
195
        .size   print_uart,.-print_uart
196
        .align  2
197
        .globl  putc_uart
198
        .ent    putc_uart
199
putc_uart:
200
        .frame  $sp,0,$ra                # vars= 0, regs= 0/0, args= 0, extra= 0
201
        .mask   0x00000000,0
202
        .fmask  0x00000000,0
203
        andi    $a0,$a0,0x00ff
204
        li      $v1,16380                       # 0x00003ffc
205
.L11:
206
        #.set   volatile
207
        lw      $v0,0($v1)
208
        #.set   novolatile
209
        andi    $v0,$v0,0x0100
210
        .set    noreorder
211
        .set    nomacro
212
        bne     $v0,$zero,.L11
213
        li      $v0,16380                       # 0x00003ffc
214
        .set    macro
215
        .set    reorder
216
 
217
        #.set   volatile
218
        sb      $a0,0($v0)
219
        #.set   novolatile
220
        j       $ra
221
        .end    putc_uart
222
        .size   putc_uart,.-putc_uart
223
        .align  2
224
        .globl  read_uart
225
        .ent    read_uart
226
read_uart:
227
        .frame  $sp,0,$ra                # vars= 0, regs= 0/0, args= 0, extra= 0
228
        .mask   0x00000000,0
229
        .fmask  0x00000000,0
230
        li      $v0,16380                       # 0x00003ffc
231
        #.set   volatile
232
        lw      $v0,0($v0)
233
        #.set   novolatile
234
        .set    noreorder
235
        .set    nomacro
236
        j       $ra
237
        andi    $v0,$v0,0x00ff
238
        .set    macro
239
        .set    reorder
240
 
241
        .end    read_uart
242
        .size   read_uart,.-read_uart
243
        .align  2
244
        .globl  print
245
        .ent    print
246
print:
247
        .frame  $sp,0,$ra                # vars= 0, regs= 0/0, args= 0, extra= 0
248
        .mask   0x00000000,0
249
        .fmask  0x00000000,0
250
        lbu     $v0,0($a0)
251
        .set    noreorder
252
        .set    nomacro
253
        beq     $v0,$zero,.L18
254
        move    $v1,$v0
255
        .set    macro
256
        .set    reorder
257
 
258
        li      $a1,16368                       # 0x00003ff0
259
        move    $v0,$v1
260
.L21:
261
        #.set   volatile
262
        sb      $v0,0($a1)
263
        #.set   novolatile
264
        addu    $a0,$a0,1
265
        lbu     $v1,0($a0)
266
        .set    noreorder
267
        .set    nomacro
268
        bne     $v1,$zero,.L21
269
        move    $v0,$v1
270
        .set    macro
271
        .set    reorder
272
 
273
.L18:
274
        li      $v0,16368                       # 0x00003ff0
275
        #.set   volatile
276
        sb      $zero,0($v0)
277
        #.set   novolatile
278
        j       $ra
279
        .end    print
280
        .size   print,.-print
281
        .align  2
282
        .globl  itoa
283
        .ent    itoa
284
itoa:
285
        .frame  $sp,0,$ra                # vars= 0, regs= 0/0, args= 0, extra= 0
286
        .mask   0x00000000,0
287
        .fmask  0x00000000,0
288
        move    $a2,$a0
289
        lui     $v0,%hi(buf.10+10) # high
290
        sb      $zero,%lo(buf.10+10)($v0)
291
        li      $a1,9                   # 0x00000009
292
        lui     $v0,%hi(buf.10) # high
293
        addiu   $t0,$v0,%lo(buf.10) # low
294
        li      $a3,-858993459                  # 0xcccccccd
295
.L26:
296
        addu    $a0,$a1,$t0
297
        multu   $a2,$a3
298
        mfhi    $t1
299
        srl     $v1,$t1,3
300
        sll     $v0,$v1,2
301
        addu    $v0,$v0,$v1
302
        sll     $v0,$v0,1
303
        subu    $v0,$a2,$v0
304
        addu    $v0,$v0,48
305
        sb      $v0,0($a0)
306
        addu    $a1,$a1,-1
307
        .set    noreorder
308
        .set    nomacro
309
        bgez    $a1,.L26
310
        move    $a2,$v1
311
        .set    macro
312
        .set    reorder
313
 
314
        lui     $v0,%hi(buf.10) # high
315
        .set    noreorder
316
        .set    nomacro
317
        j       $ra
318
        addiu   $v0,$v0,%lo(buf.10) # low
319
        .set    macro
320
        .set    reorder
321
 
322
        .end    itoa
323
        .size   itoa,.-itoa
324
        .text
325
        .align  2
326
        .globl  number_text
327
        .ent    number_text
328
number_text:
329
        .frame  $sp,32,$ra              # vars= 0, regs= 3/0, args= 16, extra= 0
330
        .mask   0x80030000,-8
331
        .fmask  0x00000000,0
332
        subu    $sp,$sp,32
333
        sw      $ra,24($sp)
334
        sw      $s1,20($sp)
335
        sw      $s0,16($sp)
336
        .set    noreorder
337
        .set    nomacro
338
        jal     itoa
339
        move    $s1,$a0
340
        .set    macro
341
        .set    reorder
342
 
343
        .set    noreorder
344
        .set    nomacro
345
        jal     print_uart
346
        move    $a0,$v0
347
        .set    macro
348
        .set    reorder
349
 
350
        lui     $a0,%hi(.LC28) # high
351
        .set    noreorder
352
        .set    nomacro
353
        jal     print_uart
354
        addiu   $a0,$a0,%lo(.LC28) # low
355
        .set    macro
356
        .set    reorder
357
 
358
        li      $v0,999948288                   # 0x3b9a0000
359
        ori     $v0,$v0,0xc9ff
360
        sltu    $v0,$v0,$s1
361
        .set    noreorder
362
        .set    nomacro
363
        beq     $v0,$zero,.L29
364
        srl     $v1,$s1,9
365
        .set    macro
366
        .set    reorder
367
 
368
        li      $v0,262144                      # 0x00040000
369
        ori     $v0,$v0,0x4b83
370
        multu   $v1,$v0
371
        mfhi    $a1
372
        srl     $s0,$a1,7
373
        lui     $v1,%hi(name) # high
374
        addiu   $v1,$v1,%lo(name) # low
375
        sll     $v0,$s0,2
376
        addu    $v0,$v0,$v1
377
        lw      $a0,0($v0)
378
        jal     print_uart
379
        lui     $a0,%hi(.LC29) # high
380
        .set    noreorder
381
        .set    nomacro
382
        jal     print_uart
383
        addiu   $a0,$a0,%lo(.LC29) # low
384
        .set    macro
385
        .set    reorder
386
 
387
        sll     $v0,$s0,5
388
        subu    $v0,$v0,$s0
389
        sll     $v0,$v0,2
390
        subu    $v0,$v0,$s0
391
        sll     $v0,$v0,4
392
        addu    $v0,$v0,$s0
393
        sll     $v0,$v0,3
394
        subu    $v0,$v0,$s0
395
        sll     $v1,$v0,5
396
        subu    $v1,$v1,$v0
397
        sll     $v1,$v1,2
398
        addu    $v1,$v1,$s0
399
        sll     $v1,$v1,9
400
        subu    $s1,$s1,$v1
401
.L29:
402
        li      $v0,99942400                    # 0x05f50000
403
        ori     $v0,$v0,0xe0ff
404
        sltu    $v0,$v0,$s1
405
        .set    noreorder
406
        .set    nomacro
407
        beq     $v0,$zero,.L30
408
        li      $v0,1441136640                  # 0x55e60000
409
        .set    macro
410
        .set    reorder
411
 
412
        ori     $v0,$v0,0x3b89
413
        multu   $s1,$v0
414
        mfhi    $a1
415
        srl     $s0,$a1,25
416
        lui     $v1,%hi(name) # high
417
        addiu   $v1,$v1,%lo(name) # low
418
        sll     $v0,$s0,2
419
        addu    $v0,$v0,$v1
420
        lw      $a0,0($v0)
421
        jal     print_uart
422
        lui     $a0,%hi(.LC30) # high
423
        .set    noreorder
424
        .set    nomacro
425
        jal     print_uart
426
        addiu   $a0,$a0,%lo(.LC30) # low
427
        .set    macro
428
        .set    reorder
429
 
430
        sll     $v0,$s0,1
431
        addu    $v0,$v0,$s0
432
        sll     $v0,$v0,6
433
        subu    $v0,$v0,$s0
434
        sll     $v0,$v0,2
435
        subu    $v0,$v0,$s0
436
        sll     $v0,$v0,4
437
        subu    $v0,$v0,$s0
438
        sll     $v0,$v0,5
439
        addu    $v0,$v0,$s0
440
        sll     $v0,$v0,8
441
        subu    $s1,$s1,$v0
442
        li      $v0,983040                      # 0x000f0000
443
        ori     $v0,$v0,0x423f
444
        sltu    $v0,$v0,$s1
445
        .set    noreorder
446
        .set    nomacro
447
        bne     $v0,$zero,.L44
448
        li      $v0,19988480                    # 0x01310000
449
        .set    macro
450
        .set    reorder
451
 
452
        lui     $a0,%hi(.LC31) # high
453
        .set    noreorder
454
        .set    nomacro
455
        jal     print_uart
456
        addiu   $a0,$a0,%lo(.LC31) # low
457
        .set    macro
458
        .set    reorder
459
 
460
.L30:
461
        li      $v0,19988480                    # 0x01310000
462
.L44:
463
        ori     $v0,$v0,0x2cff
464
        sltu    $v0,$v0,$s1
465
        .set    noreorder
466
        .set    nomacro
467
        beq     $v0,$zero,.L32
468
        li      $v0,1801388032                  # 0x6b5f0000
469
        .set    macro
470
        .set    reorder
471
 
472
        ori     $v0,$v0,0xca6b
473
        multu   $s1,$v0
474
        mfhi    $a1
475
        srl     $s0,$a1,22
476
        lui     $v1,%hi(name) # high
477
        addiu   $v1,$v1,%lo(name) # low
478
        addu    $v0,$s0,20
479
        sll     $v0,$v0,2
480
        addu    $v0,$v0,$v1
481
        lw      $a0,0($v0)
482
        jal     print_uart
483
        .set    noreorder
484
        .set    nomacro
485
        jal     putc_uart
486
        li      $a0,32                  # 0x00000020
487
        .set    macro
488
        .set    reorder
489
 
490
        sll     $v1,$s0,5
491
        subu    $v1,$v1,$s0
492
        sll     $v0,$v1,6
493
        subu    $v0,$v0,$v1
494
        sll     $v0,$v0,3
495
        addu    $v0,$v0,$s0
496
        sll     $v1,$v0,2
497
        addu    $v0,$v0,$v1
498
        sll     $v0,$v0,7
499
        subu    $s1,$s1,$v0
500
        li      $v0,983040                      # 0x000f0000
501
        ori     $v0,$v0,0x423f
502
        sltu    $v0,$v0,$s1
503
        .set    noreorder
504
        .set    nomacro
505
        bne     $v0,$zero,.L45
506
        li      $v0,1125842944                  # 0x431b0000
507
        .set    macro
508
        .set    reorder
509
 
510
        lui     $a0,%hi(.LC31) # high
511
        .set    noreorder
512
        .set    nomacro
513
        jal     print_uart
514
        addiu   $a0,$a0,%lo(.LC31) # low
515
        .set    macro
516
        .set    reorder
517
 
518
.L32:
519
        li      $v0,983040                      # 0x000f0000
520
        ori     $v0,$v0,0x423f
521
        sltu    $v0,$v0,$s1
522
        .set    noreorder
523
        .set    nomacro
524
        beq     $v0,$zero,.L34
525
        li      $v0,1125842944                  # 0x431b0000
526
        .set    macro
527
        .set    reorder
528
 
529
.L45:
530
        ori     $v0,$v0,0xde83
531
        multu   $s1,$v0
532
        mfhi    $a1
533
        srl     $s0,$a1,18
534
        lui     $v1,%hi(name) # high
535
        addiu   $v1,$v1,%lo(name) # low
536
        sll     $v0,$s0,2
537
        addu    $v0,$v0,$v1
538
        lw      $a0,0($v0)
539
        jal     print_uart
540
        lui     $a0,%hi(.LC32) # high
541
        .set    noreorder
542
        .set    nomacro
543
        jal     print_uart
544
        addiu   $a0,$a0,%lo(.LC32) # low
545
        .set    macro
546
        .set    reorder
547
 
548
        sll     $v1,$s0,5
549
        subu    $v1,$v1,$s0
550
        sll     $v0,$v1,6
551
        subu    $v0,$v0,$v1
552
        sll     $v0,$v0,3
553
        addu    $v0,$v0,$s0
554
        sll     $v0,$v0,6
555
        subu    $s1,$s1,$v0
556
.L34:
557
        li      $v0,65536                       # 0x00010000
558
        ori     $v0,$v0,0x869f
559
        sltu    $v0,$v0,$s1
560
        .set    noreorder
561
        .set    nomacro
562
        beq     $v0,$zero,.L35
563
        srl     $v1,$s1,5
564
        .set    macro
565
        .set    reorder
566
 
567
        li      $v0,175898624                   # 0x0a7c0000
568
        ori     $v0,$v0,0x5ac5
569
        multu   $v1,$v0
570
        mfhi    $a1
571
        srl     $s0,$a1,7
572
        lui     $v1,%hi(name) # high
573
        addiu   $v1,$v1,%lo(name) # low
574
        sll     $v0,$s0,2
575
        addu    $v0,$v0,$v1
576
        lw      $a0,0($v0)
577
        jal     print_uart
578
        lui     $a0,%hi(.LC30) # high
579
        .set    noreorder
580
        .set    nomacro
581
        jal     print_uart
582
        addiu   $a0,$a0,%lo(.LC30) # low
583
        .set    macro
584
        .set    reorder
585
 
586
        sll     $v0,$s0,1
587
        addu    $v0,$v0,$s0
588
        sll     $v1,$v0,6
589
        addu    $v0,$v0,$v1
590
        sll     $v0,$v0,2
591
        addu    $v0,$v0,$s0
592
        sll     $v0,$v0,2
593
        addu    $v0,$v0,$s0
594
        sll     $v0,$v0,5
595
        subu    $s1,$s1,$v0
596
        sltu    $v0,$s1,1000
597
        .set    noreorder
598
        .set    nomacro
599
        beq     $v0,$zero,.L46
600
        sltu    $v0,$s1,20000
601
        .set    macro
602
        .set    reorder
603
 
604
        lui     $a0,%hi(.LC33) # high
605
        .set    noreorder
606
        .set    nomacro
607
        jal     print_uart
608
        addiu   $a0,$a0,%lo(.LC33) # low
609
        .set    macro
610
        .set    reorder
611
 
612
.L35:
613
        sltu    $v0,$s1,20000
614
.L46:
615
        .set    noreorder
616
        .set    nomacro
617
        bne     $v0,$zero,.L47
618
        sltu    $v0,$s1,1000
619
        .set    macro
620
        .set    reorder
621
 
622
        li      $v0,-776530087                  # 0xd1b71759
623
        multu   $s1,$v0
624
        mfhi    $a1
625
        srl     $s0,$a1,13
626
        lui     $v1,%hi(name) # high
627
        addiu   $v1,$v1,%lo(name) # low
628
        addu    $v0,$s0,20
629
        sll     $v0,$v0,2
630
        addu    $v0,$v0,$v1
631
        lw      $a0,0($v0)
632
        jal     print_uart
633
        .set    noreorder
634
        .set    nomacro
635
        jal     putc_uart
636
        li      $a0,32                  # 0x00000020
637
        .set    macro
638
        .set    reorder
639
 
640
        sll     $v0,$s0,2
641
        addu    $v0,$v0,$s0
642
        sll     $v0,$v0,3
643
        subu    $v0,$v0,$s0
644
        sll     $v0,$v0,4
645
        addu    $v0,$v0,$s0
646
        sll     $v0,$v0,4
647
        subu    $s1,$s1,$v0
648
        sltu    $v0,$s1,1000
649
        .set    noreorder
650
        .set    nomacro
651
        beq     $v0,$zero,.L48
652
        li      $v0,274857984                   # 0x10620000
653
        .set    macro
654
        .set    reorder
655
 
656
        lui     $a0,%hi(.LC33) # high
657
        .set    noreorder
658
        .set    nomacro
659
        jal     print_uart
660
        addiu   $a0,$a0,%lo(.LC33) # low
661
        .set    macro
662
        .set    reorder
663
 
664
        sltu    $v0,$s1,1000
665
.L47:
666
        .set    noreorder
667
        .set    nomacro
668
        bne     $v0,$zero,.L49
669
        sltu    $v0,$s1,100
670
        .set    macro
671
        .set    reorder
672
 
673
        li      $v0,274857984                   # 0x10620000
674
.L48:
675
        ori     $v0,$v0,0x4dd3
676
        multu   $s1,$v0
677
        mfhi    $a1
678
        srl     $s0,$a1,6
679
        lui     $v1,%hi(name) # high
680
        addiu   $v1,$v1,%lo(name) # low
681
        sll     $v0,$s0,2
682
        addu    $v0,$v0,$v1
683
        lw      $a0,0($v0)
684
        jal     print_uart
685
        lui     $a0,%hi(.LC34) # high
686
        .set    noreorder
687
        .set    nomacro
688
        jal     print_uart
689
        addiu   $a0,$a0,%lo(.LC34) # low
690
        .set    macro
691
        .set    reorder
692
 
693
        sll     $v0,$s0,5
694
        subu    $v0,$v0,$s0
695
        sll     $v0,$v0,2
696
        addu    $v0,$v0,$s0
697
        sll     $v0,$v0,3
698
        subu    $s1,$s1,$v0
699
        sltu    $v0,$s1,100
700
.L49:
701
        .set    noreorder
702
        .set    nomacro
703
        bne     $v0,$zero,.L50
704
        sltu    $v0,$s1,20
705
        .set    macro
706
        .set    reorder
707
 
708
        li      $v0,1374355456                  # 0x51eb0000
709
        ori     $v0,$v0,0x851f
710
        multu   $s1,$v0
711
        mfhi    $a1
712
        srl     $s0,$a1,5
713
        lui     $v1,%hi(name) # high
714
        addiu   $v1,$v1,%lo(name) # low
715
        sll     $v0,$s0,2
716
        addu    $v0,$v0,$v1
717
        lw      $a0,0($v0)
718
        jal     print_uart
719
        lui     $a0,%hi(.LC30) # high
720
        .set    noreorder
721
        .set    nomacro
722
        jal     print_uart
723
        addiu   $a0,$a0,%lo(.LC30) # low
724
        .set    macro
725
        .set    reorder
726
 
727
        sll     $v0,$s0,1
728
        addu    $v0,$v0,$s0
729
        sll     $v0,$v0,3
730
        addu    $v0,$v0,$s0
731
        sll     $v0,$v0,2
732
        subu    $s1,$s1,$v0
733
        sltu    $v0,$s1,20
734
.L50:
735
        .set    noreorder
736
        .set    nomacro
737
        bne     $v0,$zero,.L51
738
        lui     $v1,%hi(name) # high
739
        .set    macro
740
        .set    reorder
741
 
742
        li      $v0,-858993459                  # 0xcccccccd
743
        multu   $s1,$v0
744
        mfhi    $a1
745
        srl     $s0,$a1,3
746
        addiu   $v1,$v1,%lo(name) # low
747
        addu    $v0,$s0,20
748
        sll     $v0,$v0,2
749
        addu    $v0,$v0,$v1
750
        lw      $a0,0($v0)
751
        jal     print_uart
752
        .set    noreorder
753
        .set    nomacro
754
        jal     putc_uart
755
        li      $a0,32                  # 0x00000020
756
        .set    macro
757
        .set    reorder
758
 
759
        sll     $v0,$s0,2
760
        addu    $v0,$v0,$s0
761
        sll     $v0,$v0,1
762
        subu    $s1,$s1,$v0
763
        lui     $v1,%hi(name) # high
764
.L51:
765
        addiu   $v1,$v1,%lo(name) # low
766
        sll     $v0,$s1,2
767
        addu    $v0,$v0,$v1
768
        lw      $a0,0($v0)
769
        jal     print_uart
770
        .set    noreorder
771
        .set    nomacro
772
        jal     putc_uart
773
        li      $a0,13                  # 0x0000000d
774
        .set    macro
775
        .set    reorder
776
 
777
        .set    noreorder
778
        .set    nomacro
779
        jal     putc_uart
780
        li      $a0,10                  # 0x0000000a
781
        .set    macro
782
        .set    reorder
783
 
784
        lw      $ra,24($sp)
785
        lw      $s1,20($sp)
786
        lw      $s0,16($sp)
787
        .set    noreorder
788
        .set    nomacro
789
        j       $ra
790
        addu    $sp,$sp,32
791
        .set    macro
792
        .set    reorder
793
 
794
        .end    number_text
795
        .size   number_text,.-number_text
796
        .text
797
        .align  2
798
        .globl  main2
799
        .ent    main2
800
main2:
801
        .frame  $sp,24,$ra              # vars= 0, regs= 2/0, args= 16, extra= 0
802
        .mask   0x80010000,-4
803
        .fmask  0x00000000,0
804
        subu    $sp,$sp,24
805
        sw      $ra,20($sp)
806
        sw      $s0,16($sp)
807
        lui     $a0,%hi(.LC35) # high
808
        .set    noreorder
809
        .set    nomacro
810
        jal     print_uart
811
        addiu   $a0,$a0,%lo(.LC35) # low
812
        .set    macro
813
        .set    reorder
814
 
815
        li      $s0,3                   # 0x00000003
816
.L53:
817
        .set    noreorder
818
        .set    nomacro
819
        jal     number_text
820
        move    $a0,$s0
821
        .set    macro
822
        .set    reorder
823
 
824
        sll     $v0,$s0,1
825
        .set    noreorder
826
        .set    nomacro
827
        b       .L53
828
        addu    $s0,$s0,$v0
829
        .set    macro
830
        .set    reorder
831
 
832
        .end    main2
833
        .size   main2,.-main2

powered by: WebSVN 2.1.0

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