aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/README.md b/README.md
index 294413c..66b2fa1 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,19 @@
1brainfuck 1brainfuck
2========= 2=========
3 3
4brainfuck 4Brainfuck is represented by an array with 30,000 cells initialized to zero
5and a data pointer pointing at the current cell.
6
7There are eight commands:
8```
9+ : Increments the value at the current cell by one.
10- : Decrements the value at the current cell by one.
11> : Moves the data pointer to the next cell (cell on the right).
12< : Moves the data pointer to the previous cell (cell on the left).
13. : Prints the ASCII value at the current cell (i.e. 65 = 'A').
14, : Reads a single input character into the current cell.
15[ : If the value at the current cell is zero, skips to the corresponding ] .
16 Otherwise, move to the next instruction.
17] : If the value at the current cell is zero, move to the next instruction.
18 Otherwise, move backwards in the instructions to the corresponding [ .
19``` \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)