Skip to content

Instantly share code, notes, and snippets.

@JKrag
Created March 18, 2014 18:27
Show Gist options
  • Save JKrag/9626311 to your computer and use it in GitHub Desktop.
Save JKrag/9626311 to your computer and use it in GitHub Desktop.
+++++ +++++ initialize counter (cell #0) to 10
[ use loop to set 70/90/110/30/10
> +++++ ++ add 7 to cell #1
> +++++ ++++ add 9 to cell #2
> +++++ +++++ + add 11 to cell #3
>+++ add 3 to cell #4
> + add 1 to cell #5
<<<<< - decrement counter in cell #0
]
> ++++ . Increment cell #1 to 74 and print 'J'
> +++++ ++ . Increment cell #2 to 97 and print 'a'
> . Use cell #3 to print 'n'
> ++ . Increment cell #4 to print ' '
<<<+ . Increment cell #1 to 75 to print 'K'
>> ++++ . Increment cell #3 to 114 to print 'r'
< . print 'a' Use cell #2 again to print 'a'
+++++ +. And increment it to 103 to print 'g'
>>> . Use cell 5 to print '\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment