summaryrefslogtreecommitdiff
path: root/input/stacktopia.asm
blob: 783ff546906a5e233041aff624105fad531abd1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;;;;;;;
;;; demonstrates the push/pop functions by pushing and popping various values

.data
.text
MAIN:
        addi $5 $0 1
        push $5
        addi $5 $5 1
        push $5
        addi $5 $5 1
        push $5
        addi $5 $5 1
        push $5
        pop $5
        pop $6
        pop $7
        pop $8
        nop
        nop