diff options
author | David Phillips <david@sighup.nz> | 2019-07-31 21:38:17 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-08-03 12:44:12 +1200 |
commit | 15b556038033821aa85392f4013d68999f14e231 (patch) | |
tree | 876feaa81bc293d5f4b348f52f0b871310956529 /test/full-pipeline/005-small-loop.asm | |
parent | 37872f036728a7bc9b1842e73599162c8a2ab822 (diff) | |
download | toy-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.asm | 6 |
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 |