Skip to content

brainfuck

Parodper edited this page Mar 30, 2019 · 6 revisions

BRAINFUCK Interpreter

The interpreter is very slow and doesn't have debug features. So if the code doesn't seem to be working try it on another interpreter. Also the cell and program size is limited by your avaliable program memory.

If you exit the code using the AC key execute "0->DimZ" (or [0][Function][3][1][SHIFT][.]) to free memory

Loop algorithm

  • If the loop starts check if G is set. If not save program location there. If yes push the program location to the stack. If the stack is full exit
  • If the loop ends check if the current cell content is below zero. If yes delete the last program location pushed and continue. If it isnt below zero get the last program location and jump there
  • If the stack is full or empty when a loop ends it will show an error

Flowchar:

Clone this wiki locally