Created
June 8, 2015 17:08
-
-
Save tom-seddon/a57d04d01f34217d608a to your computer and use it in GitHub Desktop.
Sequence Counter 245/4/16
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 ACC | |
JNZ S | |
MOV -999 ACC | |
S:MOV ACC DOWN | |
@2 | |
@3 | |
@4 | |
MOV UP DOWN | |
@5 | |
@6 | |
@7 | |
@8 | |
L:ADD UP | |
MOV -1 RIGHT | |
JGZ L | |
MOV 1 RIGHT | |
ADD 999 | |
MOV ACC DOWN | |
MOV 0 ACC | |
@9 | |
MOV -2 ACC | |
ADD 1 | |
JRO LEFT | |
MOV ACC DOWN | |
@10 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment