diff options
Diffstat (limited to 'examples/sum-first-integers.urm')
-rw-r--r-- | examples/sum-first-integers.urm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/sum-first-integers.urm b/examples/sum-first-integers.urm new file mode 100644 index 0000000..363dbdd --- /dev/null +++ b/examples/sum-first-integers.urm | |||
@@ -0,0 +1,12 @@ | |||
1 | COPY 2 1 | ||
2 | ZERO 3 | ||
3 | JUMP 2 3 12 | ||
4 | ZERO 4 | ||
5 | JUMP 3 4 9 | ||
6 | SUCC 1 | ||
7 | SUCC 4 | ||
8 | ZERO 5 | ||
9 | JUMP 5 5 4 | ||
10 | SUCC 3 | ||
11 | ZERO 6 | ||
12 | JUMP 6 6 2 | ||