aboutsummaryrefslogtreecommitdiffstats
path: root/src/ymh15/test.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/ymh15/test.s')
-rw-r--r--src/ymh15/test.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ymh15/test.s b/src/ymh15/test.s
new file mode 100644
index 0000000..80f645a
--- /dev/null
+++ b/src/ymh15/test.s
@@ -0,0 +1,15 @@
+ .text
+ .globl main
+
+main:
+ li $8, 10
+ li $9, 0
+ li $10, 17
+loop:
+ beq $9, $8, end
+ add $10, $10, $9
+ addi $9, $9, 1
+ j loop
+end:
+ ori $2, $0, 10
+ syscall