blob: 370af969345380e6917a26fa7295ec21c66d36f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# sp -= 16
.text
main:
addi $sp, $sp, -16 # sp -= 16, may underflow
li $v0, 1 # print integer
move $a0, $sp # at sp
syscall
li $v0, 11 # print character
li $a0, 10 # newline
syscall
li $v0, 10 # terminate program run
syscall
|