aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinweiClarkChao <[email protected]>2015-01-09 21:49:46 +0800
committerJinweiClarkChao <[email protected]>2015-01-09 21:49:46 +0800
commit6fa3e83d8ab020d5cf8c44cc097d6ac9f79f03fb (patch)
tree71050f920ff0fda3d7d8cedab019214edfda24d1 /README.md
parent0526e79812cf242e12d5b8f4779f067bd8741668 (diff)
downloadbrainfuck-6fa3e83d8ab020d5cf8c44cc097d6ac9f79f03fb.tar.gz
fix
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 1 insertions, 19 deletions
diff --git a/README.md b/README.md
index f1f0c80..8e79428 100644
--- a/README.md
+++ b/README.md
@@ -4,23 +4,5 @@ brainfuck
4##Usage: 4##Usage:
5```bash 5```bash
6gcc brainfuck.c -o brainfuck 6gcc brainfuck.c -o brainfuck
7./brainfuck HelloWorld.bf 7./brainfuck
8``` 8```
9
10##What's brainfuck
11Brainfuck is represented by an array with 30,000 cells initialized to zero
12and a data pointer pointing at the current cell.
13
14There are eight commands:
15```
16+ : Increments the value at the current cell by one.
17- : Decrements the value at the current cell by one.
18> : Moves the data pointer to the next cell (cell on the right).
19< : Moves the data pointer to the previous cell (cell on the left).
20. : Prints the ASCII value at the current cell (i.e. 65 = 'A').
21, : Reads a single input character into the current cell.
22[ : If the value at the current cell is zero, skips to the corresponding ] .
23 Otherwise, move to the next instruction.
24] : If the value at the current cell is zero, move to the next instruction.
25 Otherwise, move backwards in the instructions to the corresponding [ .
26``` \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)