summaryrefslogtreecommitdiff
path: root/input/add-loop-directive.asm
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-11 03:32:24 -0400
committerbd <bdunahu@operationnull.com>2025-04-11 03:32:24 -0400
commit1904e4e800dcf37becb3bba17c3a3aaca3c7a47c (patch)
treed639d0d37216071462c008345d361358db24b171 /input/add-loop-directive.asm
parent1161354f5dbb9648f90edb3ffb16dc9daad7d966 (diff)
Add a few new test files
Diffstat (limited to 'input/add-loop-directive.asm')
-rw-r--r--input/add-loop-directive.asm21
1 files changed, 0 insertions, 21 deletions
diff --git a/input/add-loop-directive.asm b/input/add-loop-directive.asm
deleted file mode 100644
index 5bccff3..0000000
--- a/input/add-loop-directive.asm
+++ /dev/null
@@ -1,21 +0,0 @@
-.data
- arr 1 2 3 4
- s 3
- i 0
-
-.text
- load $5 s
- load $10 arr
- load $6 i
- jrl CMP
-L:
- add $9 $10 $6
- load $7 0($9)
- load $8 1($9)
- add $7 $7 $8
-
- store $7 0($9)
- addi $6 $6 0x1
-CMP:
- cmp $6 $5
- bgt L