summaryrefslogtreecommitdiff
path: root/input/there-and-back-again.asm
blob: 5f6b2ec4e754c9bc47b081991cba67ea455280b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;;;;;;;;
;;; tests subroutine calls using the JAL function

.data
.text
MAIN:
	jal PUSHER
	pop $5
	nop
	nop
	nop
	quot $0 $0 $0
PUSHER:
	push $2
	ret
	nop
	nop
	nop
	nop