Skip to content

etinaude/BrainFuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck

This is some code written in brainfuck, a simplistic, esoteric programming language, with only 8 instructions, it is turning complete.

brain fuck consists of 8 characters.
> move the data pointer right
< move the data pointer left
+ increment the current cell
- decrement the current cell
, get 1 byte of user input
. output the current cell value in character form
[ if the current cell is 0 jump forwards to the instruction after the next ]
] if the current cell is non-0 jump backwards to the instrucytion after the previous [

I have also made a brainfuck interpreter in google sheets, I made this to be a learning tool, it executes the code slowly so the user is able to see what happens as the programme steps through the code.

interpreter picture

Computer

I am Currently developing a computer PCB to run on bf code, I will upload the schematics once I have made more progress.