Commands - PreyMa/advanced-brainfq GitHub Wiki
There are of course all the standard Brainfuck commands. In addition also the Advanced BRainfq commands are shown.
Brainfuck commands
Command Character |
ID |
Length |
Despription |
Additional memory |
> |
1 |
2B (+B) |
Increment memory cell pointer |
Amount of occurrence |
< |
2 |
2B (+B) |
Decrement memory cell pointer |
Amount of occurrence |
+ |
3 |
2B (+B) |
Increment memory cell value |
Amount of occurrence |
- |
4 |
2B (+B) |
Decrement memory cell value |
Amount of occurrence |
[ |
5 |
5B (+I) |
Begin of loop |
Address of loop end |
] |
6 |
5B (+I) |
End of loop |
Address of loop begin |
. |
7 |
1B |
Printout current memory cell |
|
, |
8 |
1B |
Read to current memory cell |
|
Advanced Brainfuck commands
Command Character |
ID |
Length |
Despription |
Additional memory |
? |
|
|
Comment indicator |
|
$ |
|
|
Current value indicator |
|
; |
|
|
Current address indicator |
|
: |
9 |
1B |
Function indicator |
|
= |
10 |
2B (+B) |
Set current memory cell |
Value type descriptor |
% |
11 |
2B (+B) |
Set memory cell pointer |
Value type descriptor |
& |
14 |
1B |
AND operation with the next cell |
|
absolute operator* |
15 |
1B |
OR operation with the next cell |
|
! |
16 |
1B |
NOT operation |
|
~ |
17 |
1B |
Move memory cell value to address from next cell |
|
* |
18 |
1B |
Add value from next cell |
|
_ |
19 |
1B |
Subrtact value from next cell |
|
# |
20 |
2B (+B) |
Jump to function |
Function ID |
absolute value operator* means '|' and can not be shown in the table due to the way the table is formated
Value type descriptors
ID |
Length |
Description |
Additional memory |
0 |
5B (+I) |
Integer constant |
Integer constant |
1 |
1B |
Current value |
|
2 |
1B |
Current pointer position |
|