summaryrefslogtreecommitdiff
path: root/test/full-pipeline/005-small-loop.asm
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-07-31 21:38:17 +1200
committerDavid Phillips <david@sighup.nz>2019-08-03 12:44:12 +1200
commit15b556038033821aa85392f4013d68999f14e231 (patch)
tree876feaa81bc293d5f4b348f52f0b871310956529 /test/full-pipeline/005-small-loop.asm
parent37872f036728a7bc9b1842e73599162c8a2ab822 (diff)
downloadtoy-cpu-assembler-15b556038033821aa85392f4013d68999f14e231.tar.xz
Add simple loop disasm test
Diffstat (limited to 'test/full-pipeline/005-small-loop.asm')
-rw-r--r--test/full-pipeline/005-small-loop.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/full-pipeline/005-small-loop.asm b/test/full-pipeline/005-small-loop.asm
new file mode 100644
index 0000000..3f2dc5f
--- /dev/null
+++ b/test/full-pipeline/005-small-loop.asm
@@ -0,0 +1,6 @@
+ldi $1, 2
+ldi $2, 100
+ldi $3, 0
+loop:
+ add $3, $3, $1
+ bnz loop