-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.asc
executable file
·33 lines (33 loc) · 1.27 KB
/
sample.asc
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
8c04402c # 00004000 lw $a0 count($zero)
20054030 # 00004004 addi $a1 $zero input
20064044 # 00004008 addi $a2 $zero output
08001012 # 0000400c j sum
00000000 # 00004010 .word 0 0 0 0 0 0 0
00000000 # 00004014 .word 0 0 0 0 0 0 0
00000000 # 00004018 .word 0 0 0 0 0 0 0
00000000 # 0000401c .word 0 0 0 0 0 0 0
00000000 # 00004020 .word 0 0 0 0 0 0 0
00000000 # 00004024 .word 0 0 0 0 0 0 0
00000000 # 00004028 .word 0 0 0 0 0 0 0
00000005 # 0000402c .word 5
00000064 # 00004030 .word 100 200 300 400 500
000000c8 # 00004034 .word 100 200 300 400 500
0000012c # 00004038 .word 100 200 300 400 500
00000190 # 0000403c .word 100 200 300 400 500
000001f4 # 00004040 .word 100 200 300 400 500
00000000 # 00004044 .word 0
00004020 # 00004048 add $t0 $zero $zero
10800006 # 0000404c beq $a0 $zero quit
00000020 # 00004050 add $zero $zero $zero
8ca90000 # 00004054 lw $t1 0($a1)
01094020 # 00004058 add $t0 $t0 $t1
20a50004 # 0000405c addi $a1 $a1 4
2084ffff # 00004060 addi $a0 $a0 -1
08001013 # 00004064 j loop
acc80000 # 00004068 sw $t0 0($a2)
00000000 # 0000406c .word 0 0 0 0 0 0
00000000 # 00004070 .word 0 0 0 0 0 0
00000000 # 00004074 .word 0 0 0 0 0 0
00000000 # 00004078 .word 0 0 0 0 0 0
00000000 # 0000407c .word 0 0 0 0 0 0
00000000 # 00004080 .word 0 0 0 0 0 0