summaryrefslogtreecommitdiff
path: root/test/masm/segv.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/segv.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/segv.asm')
-rw-r--r--test/masm/segv.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/masm/segv.asm b/test/masm/segv.asm
new file mode 100644
index 0000000..4102bc2
--- /dev/null
+++ b/test/masm/segv.asm
@@ -0,0 +1,16 @@
+# Copyright (c) 2024 Freya Murphy
+
+# file: div.asm
+# test: should cause page fault
+
+.text
+.align 2
+.globl main
+
+main:
+ lw $t0, 0($zero)
+
+ # return
+ li $v0, 0
+ jr $ra
+ nop