blob: fa590b57ccaeb4663d11647ef5154780c9531671 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# s3 = t2 / (s1 - 54321)
.text
main:
li $t2, 69 # t2 = 69
li $s1, 54324 # s1 = 54324
sub $s1, $s1, 54321 # s1 -= 54321
div $t3, $t2, $s1 # t3 = t2 / s1
li $v0, 1 # print integer
move $a0, $t3 # at a0
syscall
li $v0, 11 # print character
li $a0, 10 # newline
syscall
li $v0, 10 # terminate program run
syscall
|