Skip to content

Instantly share code, notes, and snippets.

@Stevie-O
Created December 10, 2022 22:14
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 Stevie-O/41970aff7dc2453469467ef9002aa794 to your computer and use it in GitHub Desktop.
Save Stevie-O/41970aff7dc2453469467ef9002aa794 to your computer and use it in GitHub Desktop.
ElfCom program for AOC 2022 Day 10 (part 2). Initial value for X must be set to 3.
addx -2
addx 6
addx 2
addx -2
addx 6
noop
noop
noop
noop
addx 6
noop
noop
addx 4
addx 1
addx 1
addx 2
noop
noop
addx 2
addx 5
addx -1
addx 4
noop
noop
addx -35
addx 3
addx 2
addx 2
addx 1
addx 3
addx -2
addx 5
addx 2
addx 3
addx -2
addx 5
addx 3
addx 1
addx 2
addx 2
addx 2
addx 2
addx 2
addx 3
addx -40
addx 2
noop
noop
addx 4
addx 2
noop
noop
addx 4
noop
noop
addx 5
addx 1
noop
noop
addx 5
addx 1
addx 3
addx 2
addx 1
addx 3
addx -1
addx 5
addx 3
addx -39
addx 3
addx 2
addx 2
addx 1
addx 3
addx -2
addx 5
addx 2
addx 3
addx -2
addx 6
addx 1
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 3
addx -38
addx -2
addx 6
addx 2
addx -2
addx 6
noop
noop
noop
noop
addx 5
addx 3
addx -2
addx 5
addx 1
addx 3
addx 2
addx 2
addx 2
addx 2
addx 2
addx 3
addx -38
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx 2
addx -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment