Created
January 26, 2016 04:01
-
-
Save Ivoah/e20031b0e3c6cb7d05f1 to your computer and use it in GitHub Desktop.
AoC Day 1.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@0 | |
@1 | |
MOV UP, DOWN | |
@2 | |
##AOC DAY 1.1 | |
@3 | |
@4 | |
@5 | |
MOV UP, RIGHT | |
@6 | |
MOV 0, ACC | |
SAV | |
TOP: MOV LEFT, ACC | |
JLZ END | |
SUB 40 | |
JEZ OPEN | |
MOV -1, RIGHT | |
JMP _ | |
OPEN: MOV 1, RIGHT | |
_: SWP | |
ADD, RIGHT | |
SAV | |
JMP TOP | |
END: SWP | |
MOV ACC, DOWN | |
@7 | |
MOV LEFT, LEFT | |
@8 | |
@9 | |
@10 | |
MOV UP, DOWN | |
@11 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment