Skip to content

Instantly share code, notes, and snippets.

@gkucmierz
Created March 24, 2019 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkucmierz/de37c3e563fc0b7cc8f3080866daa4ca to your computer and use it in GitHub Desktop.
Save gkucmierz/de37c3e563fc0b7cc8f3080866daa4ca to your computer and use it in GitHub Desktop.
get_dec_input
// get dec input from 0 to 255 and store it in second cell
++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++ 48 0 dec
[
mul by 10:
>1 [-> +++++ +++++ <] >2 [-<+>] <<1
---------- ---------- ---------- ---------- -------- 48
[->+<] add to sum
,
]
!157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment