diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/arithmetic.asm (renamed from examples/addition.asm) | 0 | ||||
| -rw-r--r-- | examples/mov.asm | 5 | ||||
| -rw-r--r-- | examples/table.asm | 9 |
3 files changed, 9 insertions, 5 deletions
diff --git a/examples/addition.asm b/examples/arithmetic.asm index ea2d317..ea2d317 100644 --- a/examples/addition.asm +++ b/examples/arithmetic.asm diff --git a/examples/mov.asm b/examples/mov.asm deleted file mode 100644 index 4aa3c04..0000000 --- a/examples/mov.asm +++ /dev/null @@ -1,5 +0,0 @@ -mov a, 10 -mov b, a -cmp a, b -cmp a, 10 -hlt diff --git a/examples/table.asm b/examples/table.asm new file mode 100644 index 0000000..6ec079b --- /dev/null +++ b/examples/table.asm @@ -0,0 +1,9 @@ +; Table of 3 +mov b, 3 +mov c, 10 ; Counter + +loop: + add a, b + sub c, 1 + jnz loop +hlt |
