Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem









Do name your hosts in english please. I kept getting confused whether dispari was odd or even, and putting in the wrong links.
Cycles 1717, size 78, activity 71
LINK 800
LINK 3
MAKE;400 EVEN
DROP
LINK -1
LINK -3
MAKE;401 ODD
DROP
LINK -1
GRAB 200
MARK LOOP
COPY F M
TEST EOF
FJMP LOOP
COPY -9999 M
KILL
DROP
;SORT
MODE
REPL ODD
;EVEN
LINK -3
GRAB 401
REPL WRITE
JUMP SORT
MARK ODD
LINK 3
GRAB 400
REPL WRITE
;SORT
MARK SORT
TEST F < X
FJMP SORTNEXT
SEEK -1
COPY F X
MARK SORTNEXT
TEST EOF
FJMP SORT
;I FORGOT WHERE IS IT
SEEK -9999
MARK FINDAGAIN
TEST F = X
FJMP FINDAGAIN
SEEK -1
VOID F
COPY X M
SEEK -9999
TEST EOF
TJMP DONE
COPY F X
TEST EOF
FJMP SORT
COPY X M
MARK DONE
KILL
WIPE
HALT
MARK WRITE
MAKE
MARK WRITELOOP
COPY M F
JUMP WRITELOOP
When the whole file is read, the counter is incremented by 1 and a test is done if X < 401. This serves two purpose: first to differentiate 400 and 401, and secondly to crash the EXA when 401 is reached. GRAB X is then used and the test result between 400/401 tells it to link to the correct host output.
LINK 800
COPY -100 X
MAKE
DROP
MAKE
DROP
GRAB 200
MARK START
TEST F = X
REPL WRITER
TEST EOF
FJMP START
TEST X < 401
REPL END
ADDI X 1 X
SEEK -9999
TJMP START
MARK END
GRAB X
MULI 6 T T
SUBI T 3 T
LINK T
;====
MARK WRITER
DIVI T T T
MODI X 2 T
ADDI 400 T T
GRAB T
SEEK 9999
COPY X F
The PARI/DISPARI was no problem. If I can solve Zachtronics games, I can figure stuff like that out. ;-)
How many lines of code did it take?
PS: Sorry for "PARI" and "DISPARI", I didn't notice I left them in Italian :)