summaryrefslogtreecommitdiff
path: root/input/stacktopia.asm
blob: 5eef33b5880427c44680523c345e7cf66960d301 (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