aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorIgor Pashev <pashev@truth.(none)>2010-01-19 15:03:22 +0300
committerIgor Pashev <pashev@truth.(none)>2010-01-19 15:03:22 +0300
commit0a48fa6f3329d89701ed8b6d430447af04777652 (patch)
tree6c6fd658d3d71fb54cd8c51c1a39e26300ee82ab /README
parentc98e6c8e3159799254aa6f5aed904a7ec8e7c68d (diff)
downloadbrainfuck-0a48fa6f3329d89701ed8b6d430447af04777652.tar.gz
Trace execution for debugging
Diffstat (limited to 'README')
-rw-r--r--README6
1 files changed, 4 insertions, 2 deletions
diff --git a/README b/README
index fd9ac54..b627bfd 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
./brainfuck: Brainfuck programming language interpreter
-See http://en.wikipedia.org/wiki/Brainfuck for more details
+See <http://en.wikipedia.org/wiki/Brainfuck> for more details
Usage: ./brainfuck [options] [file]
@@ -9,12 +9,13 @@ All data cells are zeros initially
Options (defaults are in brackets):
-s num stack size (128)
-d num data size (30000)
+ -t trace execution for debug
Formats for operators '.' and ',' (output and input):
-c, -i, -u, -o, -x char, signed int, unsigned int, octal, hexadecimal
octal number must be prepended by '0' (zero),
and hexadecimal - by '0x'
-Default i/o format: -i
+Default i/o format -u
-h this help message
@@ -31,3 +32,4 @@ Example:
echo '+++[.-]' | ./brainfuck # count down from 3 to 1
echo ',+++.;5' | ./brainfuck # shows 8
echo ',>,<[->+<]>.;4 5' | ./brainfuck # shows 4+5=9
+ echo 'c,u.;h' | ./brainfuck # shows 104 (ASCII code for 'h')