aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorpacien2018-04-22 22:39:56 +0200
committerpacien2018-04-22 22:39:56 +0200
commit0027c7b647e1b345badbb01bcafd22feee075470 (patch)
tree8cf72c45c517b20c1adfe4eba25f8b3358115282 /examples
parentdb9de5bc717be46f0ca2dc1aa975c75adca6264d (diff)
downloadurm-0027c7b647e1b345badbb01bcafd22feee075470.tar.gz
Implement program execution from command line
Diffstat (limited to 'examples')
-rw-r--r--examples/add.reg2
-rw-r--r--examples/add.urm11
2 files changed, 13 insertions, 0 deletions
diff --git a/examples/add.reg b/examples/add.reg
new file mode 100644
index 0000000..c24e1f9
--- /dev/null
+++ b/examples/add.reg
@@ -0,0 +1,2 @@
11 2
22 3
diff --git a/examples/add.urm b/examples/add.urm
new file mode 100644
index 0000000..d11eff7
--- /dev/null
+++ b/examples/add.urm
@@ -0,0 +1,11 @@
1ZERO 0
2ZERO 3
3JUMP 1 3 6
4SUCC 0
5SUCC 3
6JUMP 3 3 2
7ZERO 3
8JUMP 2 3 11
9SUCC 0
10SUCC 3
11JUMP 3 3 7