From Esolang
Jump to: navigation, search

Brainfuck-- is a language made by User:Wh1teWolf and is a downgraded version of brainfuck, that uses only five instructions.


Brainfuck-- was created by User:Wh1teWolf in 2009 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 5 instructions:

+     Sets current bit to the opposite of itself
.     Output ascii equavelent of first 8 bits if nonzero, else input one letter and store its value in first 8 bits
>     Move to next bit
[     Jump past the matching ] if the current bit is 0
]     Jump back to the matching [ if the current bit is nonzero 


Hello Program

>>>+>>>+.                                         H
>>>>>>>>>>>>>>>>>>>>>>>>>>+>>+>+>>+.              e
>>>>>>>>>>>>>>>>>>>>>>>>>>>+>>>+.                 l
.                                                 l
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+>+.                 o

Cat Program


Moving the pointer one step back


Moving the pointer five steps back


See Also: