Skip to content

Instantly share code, notes, and snippets.

@soasme
Forked from YetAnotherMinion/if_else.bf
Created December 25, 2016 10:48
Show Gist options
  • Save soasme/b4f50c214763ec17d0b4079bbb9c5304 to your computer and use it in GitHub Desktop.
Save soasme/b4f50c214763ec17d0b4079bbb9c5304 to your computer and use it in GitHub Desktop.
if else in brainfuck
if(a>=b) and else
assume input array is like this
0 1 0 A B 0
and we are pointing to A
+>+<[->-[>]<<]<[- BLOCK_A_GE_B]<[-< BLOCK_A_LT_B ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment