summaryrefslogtreecommitdiff
path: root/input/there-and-back-again.asm
blob: 22dfb321074332831c8a6ec881d8d2584a3248e9 (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