-
Notifications
You must be signed in to change notification settings - Fork 0
/
Multiply.asm
20 lines (16 loc) · 1.1 KB
/
Multiply.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.data
msg: .asciiz "\n:"
.text
addi $t0, $0 120
addi $t1, $0 2
li $v0,1
mul $a0,$t0,$t1
syscall
li $v0,4
la $a0,msg
syscall
mult $t0,$t1
mflo $s0
li $v0,1
add $a0,$0,$s0
syscall