Skip to content

Instantly share code, notes, and snippets.

@mnemnion
Created April 1, 2014 21:28
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 mnemnion/9923575 to your computer and use it in GitHub Desktop.
Save mnemnion/9923575 to your computer and use it in GitHub Desktop.
( brute force ngaro assembler )
chain: ming'
: nop, 0 , ; immediate
: drop, 3 , ; immediate
: pop, 6 , ; immediate
: ;, 9 , ; immediate
: !jump, 12 , ; immediate
: !, 15 , ; immediate
: *, 18 , ; immediate
: or, 21 , ; immediate
: >>, 24 , ; immediate
: 1-, 27 , ; immediate
: lit, 1 , ; immediate
: swap, 4 , ; immediate
: loop, 7 , ; immediate
: >jump, 10 , ; immediate
: =jump, 13 , ; immediate
: +, 16 , ; immediate
: /mod, 19 , ; immediate
: xor, 22 , ; immediate
: 0;, 25 , ; immediate
: in, 28 , ; immediate
: dup, 2 , ; immediate
: push, 5 , ; immediate
: jump, 8 , ; immediate
: <jump, 11 , ; immediate
: @, 14 , ; immediate
: -, 17 , ; immediate
: and, 20 , ; immediate
: <<, 23 , ; immediate
: 1+, 26 , ; immediate
: out, 29 , ; immediate
;chain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment