EXAPUNKS

EXAPUNKS

Not enough ratings
SCAN THE WORLD (POWERED BY SCANER2500)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
3.475 KB
23 Sep, 2018 @ 5:35am
1 Change Note ( view )

Subscribe to download
SCAN THE WORLD (POWERED BY SCANER2500)

Description
WARNING: It takes 30 mins to compleade this chalange!
2 Comments
[ZRP] Box 13 Aug, 2019 @ 6:43pm 
Full solution of mine is as follows, beware!
{XA}
LINK 800
COPY M T
TJMP BECK
COPY 1 X
MARK LOOP
COPY X #XINP
ADDI X 1 X
COPY M T
TJMP BECK
JUMP LOOP
MARK BECK
COPY X M
------
{XB}
GRAB 200
COPY F X
DROP
LINK 800
MARK LOOP
NOOP
TEST #OUPT = X
COPY T M
TJMP BECK
JUMP LOOP
MARK BECK
COPY M X
SUBI X 1 X
MODI X 50 T
DIVI X 50 X
LINK -1
MAKE
COPY T F
COPY X F
[ZRP] Box 13 Aug, 2019 @ 6:42pm 
30 mins is a hefty underestimate. (I think, I didn't time it but it felt like longer.) Got some hints for yall tho:
#XINP is just what offset the scanner seeks to, between 1 and 2500 (50^2, total size of the file)
#YINP is the same, however multiplied by 50. Highest you can go in that section is 50 before you start getting errors.
Don't be afraid of the "undefined", it's just space filling where the data isn't.
[h1]Overview of my solution is as follows[/h1]
I used two EXAs, one scrolling through the data while constantly being fed 0s from the second one, which reads the scanner's output and confirms that most of the data is not what we're looking for. Once we find what we're looking for, XB tells XA that we're at the right location and gets a number back. Make a new file, go home, do some math, print the results and die.
I'll post my entire code separate. Obvious spoiler warning for that.