-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathout.s
50 lines (44 loc) · 796 Bytes
/
out.s
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.data
main_a: .word, 0
main_test_0temp: .word, 0
main_test_1temp: .word, 0
main_test_2temp: .word, 0
.text
.globl main
main:
PC0:
li $v0, 5
PC1:
syscall
PC2:
sw $v0, main_test_0temp
PC3:
lw $t0, main_test_0temp
PC4:
sw $t0, main_a
PC5:
lw $t0, main_a
PC6:
lw $t1, main_a
PC7:
mul $t2, $t0, $t1
PC8:
sw $t2, main_test_1temp
PC9:
lw $t0, main_test_1temp
PC10:
lw $t1, main_a
PC11:
mul $t2, $t0, $t1
PC12:
sw $t2, main_test_2temp
PC13:
li $v0, 1
PC14:
lw $a0, main_test_2temp
PC15:
syscall
PC16:
exit:
li $v0, 10
syscall