Skip to content

Instantly share code, notes, and snippets.

@mjgpy3
Created December 11, 2020 20:23
Show Gist options
  • Save mjgpy3/4d0ddcd071938d0aa0274dca26380ad4 to your computer and use it in GitHub Desktop.
Save mjgpy3/4d0ddcd071938d0aa0274dca26380ad4 to your computer and use it in GitHub Desktop.
aoc-2020-day8-dsl
program at ./y2020d8.txt
with instructions
jmp {offset:num} means jump offset away
acc {amount:num} means set state to (state + amount)
nop {v:num} means noop
registers start at 0
global register named state
solution
run_until_cycle
| register state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment