summaryrefslogtreecommitdiff
path: root/test/masm/fncall.asm
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-10-01 18:22:10 -0400
committerFreya Murphy <freya@freyacat.org>2024-10-01 18:22:10 -0400
commit091c684bf1d2cca09da001b9170b205dbe5c333f (patch)
treee7dd5091ddb989b1eae35f8a5130a66b2d7b4d9b /test/masm/fncall.asm
parentdont hardcode RA in JALR (diff)
downloadmips-091c684bf1d2cca09da001b9170b205dbe5c333f.tar.gz
mips-091c684bf1d2cca09da001b9170b205dbe5c333f.tar.bz2
mips-091c684bf1d2cca09da001b9170b205dbe5c333f.zip
add recursion test, add noops for branch delay slots
Diffstat (limited to 'test/masm/fncall.asm')
-rw-r--r--test/masm/fncall.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/masm/fncall.asm b/test/masm/fncall.asm
index 96d1ba2..39455ab 100644
--- a/test/masm/fncall.asm
+++ b/test/masm/fncall.asm
@@ -11,6 +11,7 @@ result:
move $t0, $a0
move $v0, $t0
jr $ra
+ nop
main:
# save ra on stack
@@ -20,6 +21,7 @@ main:
# set return to 17
li $a0, 17
jal result
+ nop
# pop ra from stack
lw $ra, 0($sp)
@@ -27,3 +29,4 @@ main:
# return result
jr $ra
+ nop