We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I save three cycles by:
@0 S: MOV UP, ACC JGZ 1 0: MOV 0, DOWN JMP S 1: MOV 1, DOWN 2: MOV UP, ACC JEZ 0 MOV 0, DOWN JMP 2
@1 S: MOV UP, ACC JGZ 1 0: MOV 0, DOWN JMP S 1: MOV 2, DOWN 2: MOV UP, ACC JEZ 0 MOV 0, DOWN JMP 2
@2 S: MOV UP, ACC JGZ 1 0: MOV 0, DOWN JMP S 1: MOV 3, DOWN 2: MOV UP, ACC JEZ 0 MOV 0, DOWN JMP 2
@3 S: MOV UP, ACC JGZ 1 0: MOV 0, DOWN JMP S 1: MOV 4, DOWN 2: MOV UP, ACC JEZ 0 MOV 0, DOWN JMP 2
@4 MOV UP, RIGHT
@5 MOV UP, ACC ADD LEFT MOV ACC, DOWN
@6 MOV UP, ACC ADD RIGHT MOV ACC, DOWN
@7 MOV UP, LEFT
@8 MOV UP, RIGHT
@9 MOV UP, ACC ADD LEFT MOV ACC, DOWN
@10
The text was updated successfully, but these errors were encountered:
add contributed optimizations
7f70e8a
Closes issues #21, #22, #23, #24, and #25.
No branches or pull requests
I save three cycles by:
@0
S: MOV UP, ACC
JGZ 1
0: MOV 0, DOWN
JMP S
1: MOV 1, DOWN
2: MOV UP, ACC
JEZ 0
MOV 0, DOWN
JMP 2
@1
S: MOV UP, ACC
JGZ 1
0: MOV 0, DOWN
JMP S
1: MOV 2, DOWN
2: MOV UP, ACC
JEZ 0
MOV 0, DOWN
JMP 2
@2
S: MOV UP, ACC
JGZ 1
0: MOV 0, DOWN
JMP S
1: MOV 3, DOWN
2: MOV UP, ACC
JEZ 0
MOV 0, DOWN
JMP 2
@3
S: MOV UP, ACC
JGZ 1
0: MOV 0, DOWN
JMP S
1: MOV 4, DOWN
2: MOV UP, ACC
JEZ 0
MOV 0, DOWN
JMP 2
@4
MOV UP, RIGHT
@5
MOV UP, ACC
ADD LEFT
MOV ACC, DOWN
@6
MOV UP, ACC
ADD RIGHT
MOV ACC, DOWN
@7
MOV UP, LEFT
@8
MOV UP, RIGHT
@9
MOV UP, ACC
ADD LEFT
MOV ACC, DOWN
@10
The text was updated successfully, but these errors were encountered: