Skip to content

Instantly share code, notes, and snippets.

@momer
Last active December 19, 2015 03:59
Show Gist options
  • Save momer/5894039 to your computer and use it in GitHub Desktop.
Save momer/5894039 to your computer and use it in GitHub Desktop.
Continually prints 'Get Money' while incrementing the ptr ad infinitum (or at least until size of int for cell #(0))
+[ Increment ptr(0) and enter loop
>++++++++++ Increment byte at ptr(1) 10 times
[ While ptr
>+++++++ incremement ptr(2) 7 times
>++++++++++ increment ptr(3) 10 times
>+ increment ptr(4) 1 time
>+++ increment ptr(5) 3 times
<<<< - back down to ptr 1 and decrement ptr 1
]
> + . Ascii 71 (G) ptr 2
> + . Ascii 101 (e) | ptr 3
+++++++++++++++ . Ascii 116 (t) | ptr 3
>> ++ . Ascii 32 (sp) | ptr 5
<< ------- . Ascii 109 (m) | ptr 3
++ . Ascii 111 (o) | ptr 3
- . Ascii 110 (n) | ptr 3
--------- . Ascii 101 (e) | ptr 3
++++++++++++++++++++ . Ascii 121 (y) | ptr 3
> . Ascii 10 (\n) | ptr 4
- . Ascii 09 (\t) | ptr 4
> ++++ . Ascii 36 ($) | ptr 5
< + . Ascii 10 (\n) | ptr 4
[ Reset pointers to 0
<<-------
>------------
>>---
<-
]
<<-
>-
>>------
<<<<<+ *ptr now at ptr 0 and increment
]
@g4b1nagy
Copy link

Daaamn :|

@sean-obrien
Copy link

Get Money

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment