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
{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
#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.