summaryrefslogtreecommitdiff
path: root/input/there-and-back-again.asm
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-21 23:01:49 -0400
committerbd <bdunahu@operationnull.com>2025-04-21 23:01:49 -0400
commit7728beb94092f93f708af42feee3eab327749f32 (patch)
treeec654a27b33d70d6adfb1c553585bf8a21d187e5 /input/there-and-back-again.asm
parent0d844b06301d8356706b2ac837033a93c0fe256a (diff)
Fix dominative-functions example with simulator feedback
Diffstat (limited to 'input/there-and-back-again.asm')
-rw-r--r--input/there-and-back-again.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/input/there-and-back-again.asm b/input/there-and-back-again.asm
new file mode 100644
index 0000000..73bd117
--- /dev/null
+++ b/input/there-and-back-again.asm
@@ -0,0 +1,16 @@
+;;;;;;;;
+;;; tests subroutine calls using the JAL function
+
+.data
+.text
+MAIN:
+ jal PUSHER
+ pop $5
+ quot $0 $0 $0
+PUSHER:
+ push $2
+ ret
+ nop
+ nop
+ nop
+ nop