Skip to content

Instantly share code, notes, and snippets.

@h3xx h3xx/42656.1.txt
Last active Aug 29, 2015

Embed
What would you like to do?
## SEQUENCE REVERSER (ACHIEVEMENT)
@0
STO:MOV RIGHT DOWN
MOV RIGHT DOWN
MOV RIGHT DOWN
MOV RIGHT DOWN
MOV RIGHT DOWN
MOV RIGHT DOWN
MOV RIGHT ACC
RCL:MOV ACC DOWN
@1
A:MOV 7 ACC
IN:SWP
MOV UP ACC
JEZ PPAD
MOV ACC LEFT
SWP
SUB 1
JMP IN
PPAD:SWP
PAD:JEZ A
MOV 0 LEFT
SUB 1
JMP PAD
@2
@3
STO:MOV UP RIGHT
MOV UP RIGHT
MOV UP RIGHT
MOV UP RIGHT
MOV UP RIGHT
MOV UP ACC
RCL:MOV UP RIGHT
MOV ACC RIGHT
@4
STO:MOV LEFT RIGHT
MOV LEFT RIGHT
MOV LEFT RIGHT
MOV LEFT RIGHT
MOV LEFT ACC
RCL:MOV LEFT RIGHT
MOV LEFT RIGHT
MOV ACC RIGHT
@5
STO:MOV LEFT RIGHT
MOV LEFT RIGHT
MOV LEFT RIGHT
MOV LEFT ACC
RCL:MOV LEFT RIGHT
MOV LEFT RIGHT
MOV LEFT RIGHT
MOV ACC RIGHT
@6
STO:MOV LEFT DOWN
MOV LEFT DOWN
MOV LEFT ACC
RCL:MOV LEFT DOWN
MOV LEFT DOWN
MOV LEFT DOWN
MOV LEFT DOWN
MOV ACC DOWN
@7
STO:MOV RIGHT ACC
RCL:MOV RIGHT ACC
JLZ ME
JEZ RCL
MOV ACC DOWN
JMP RCL
ME:SWP
JEZ END
MOV ACC DOWN
END:MOV 0 DOWN
@8
STO:MOV UP LEFT
MOV UP ACC
RCL:MOV UP LEFT
MOV UP LEFT
MOV UP LEFT
MOV UP LEFT
MOV UP LEFT
MOV ACC LEFT
MOV -1 LEFT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.