aboutsummaryrefslogtreecommitdiff
path: root/clear-prev-cells.bf
diff options
context:
space:
mode:
authorIgor <pashev.igor@gmail.com>2010-01-17 21:37:57 +0300
committerIgor <pashev.igor@gmail.com>2010-01-17 21:37:57 +0300
commitd6a3c724a55638097edd38db6bcc2e5c50217c98 (patch)
tree797b59a34a2d33307aa47fa9c8f263c0ac9669bd /clear-prev-cells.bf
parent2c53ba0b9b36d1faff38cad74d0795b7b164efac (diff)
downloadbrainfuck-d6a3c724a55638097edd38db6bcc2e5c50217c98.tar.gz
More examples
Diffstat (limited to 'clear-prev-cells.bf')
-rw-r--r--clear-prev-cells.bf12
1 files changed, 12 insertions, 0 deletions
diff --git a/clear-prev-cells.bf b/clear-prev-cells.bf
new file mode 100644
index 0000000..faea608
--- /dev/null
+++ b/clear-prev-cells.bf
@@ -0,0 +1,12 @@
+> # to 2nd cell
++. # inc and print
+> # move to 3rd cell
+++. # set 3rd cell to 2 and print
+> # move to 4th cell
++++. # set 4th cell to 3 and print
+
+[[-]] # set to zero 2nd, 3th and 4th cells
+
+
+.>.>. # print 2nd, 3th and 4th cells
+