Brainfuck---
Jump to navigation
Jump to search
Brainfuck--- is a language made by User:A and is a downgraded version of brainfuck--, that uses only four instructions.
History
Brainfuck--- was created by User:A in 2018 in an attempt to make a language that had as few instructions possible, while still being Turing Complete (but falls short because of lack of memory). The language was also made as a test of skills.
Specification and Instruction List
Unlike brainfuck Brainfuck--- uses 32 binary bits as a way to store memory, the first 8 bits is used with the input/output instruction, the rest can be used for other things.
There are 4 instructions:
+ Sets current bit to the opposite of itself . Output ascii equivalent of first 8 bits if nonzero, else input one letter and store its value in first 8 bits > Move to next bit : Make a for loop making the current cell as count, looping all the commands until endline.
Examples
Hello Program
>>>+>>>+. H >>>>>>>>>>>>>>>>>>>>>>>>>>+>>+>+>>+. e >>>>>>>>>>>>>>>>>>>>>>>>>>>+>>>+. l . l >>>>>>>>>>>>>>>>>>>>>>>>>>>>>+>+. o
Cat program
..
Moving the pointer one step back
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Moving the pointer five steps back
>>>>>>>>>>>>>>>>>>>>>>>>>>>>