Skip to content

Instantly share code, notes, and snippets.

@frank184
Last active March 15, 2017 03:50
Show Gist options
  • Save frank184/7f876e335e59fadd3bfd144deb3e79c8 to your computer and use it in GitHub Desktop.
Save frank184/7f876e335e59fadd3bfd144deb3e79c8 to your computer and use it in GitHub Desktop.
Hello World in Brainfuck
+++++ +++++ * = | 10^| 0 | 0 | 0 | 0 |
[ * = | 10^| 0 | 0 | 0 | 0 | loops current cursor
>+ * = | 10 | 1^| 0 | 0 | 0 |
>+++ * = | 10 | 1 | 3^| 0 | 0 |
>+++++ ++ * = | 10 | 1 | 3 | 7^| 0 |
>+++++ +++++ * = | 10 | 1 | 3 | 7 | 10^|
<<<<- * = | 9v| 1 | 3 | 7 | 10 |
] * = | 0*| 10 | 30 | 70 | 100 |
>>>++. * = | 0 | 10 | 30 | 72^| 100 | print cursor value ASCII 72 = H
>+. * = | 0 | 10 | 30 | 72 | 101^| print cursor value ASCII 101 = e
+++++ ++.. * = | 0 | 10 | 30 | 72 | 108^| print cursor value ASCII 108 = l x 2
+++. * = | 0 | 10 | 30 | 72 | 111^| print cursor value ASCII 111 = o
<<++. * = | 0 | 10 | 32^| 72 | 111 | print cursor value ASCII 32 = Space
>+++++ +++++ +++++. * = | 0 | 10 | 32 | 87^| 111 | print cursor value ASCII 87 = W
>. * = | 0 | 10 | 32 | 87 | 111^| print cursor value ASCII 111 = o
+++. * = | 0 | 10 | 32 | 87 | 114^| print cursor value ASCII 114 = r
----- -. * = | 0 | 10 | 32 | 87 | 108v| print cursor value ASCII 108 = l
----- ---. * = | 0 | 10 | 32 | 87 | 100v| print cursor value ASCII 100 = d
<<+. * = | 0 | 10 | 33^| 87 | 100 | print cursor value ASCII 33 = !
<. * = | 0 | 10*| 33 | 87 | 100 | print cursor value ASCII 10 = \n
Hello World!\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment