Cài đặt Steam
đăng nhập
|
ngôn ngữ
简体中文 (Hán giản thể)
繁體中文 (Hán phồn thể)
日本語 (Nhật)
한국어 (Hàn Quốc)
ไทย (Thái)
Български (Bungari)
Čeština (CH Séc)
Dansk (Đan Mạch)
Deutsch (Đức)
English (Anh)
Español - España (Tây Ban Nha - TBN)
Español - Latinoamérica (Tây Ban Nha cho Mỹ Latin)
Ελληνικά (Hy Lạp)
Français (Pháp)
Italiano (Ý)
Bahasa Indonesia (tiếng Indonesia)
Magyar (Hungary)
Nederlands (Hà Lan)
Norsk (Na Uy)
Polski (Ba Lan)
Português (Tiếng Bồ Đào Nha - BĐN)
Português - Brasil (Bồ Đào Nha - Brazil)
Română (Rumani)
Русский (Nga)
Suomi (Phần Lan)
Svenska (Thụy Điển)
Türkçe (Thổ Nhĩ Kỳ)
Українська (Ukraine)
Báo cáo lỗi dịch thuật
{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.