Each host contains a list of restaurants and their ratings, from one to five stars (file 200). Locate the entry that corresponds to the Last Stop on Eddy Street and change its rating from one to five stars.
The name of the target restaurant and its location within the GIS grid is available in file 300. The first coordinate is the number of times to move east, while the second coordinate is the number of times to move north (positive) or south (negative).
For more information see "Network Exploration: Geographic Information Systems" in the second issue of the zine.
XA (global)
GRAB 300
LINK 800
SEEK 1
COPY F X
MARK LONGITUDE
TEST X = 0
TJMP LATITUDE
LINK 801
SUBI X 1 X
JUMP LONGITUDE
MARK LATITUDE
COPY F X
TEST X < 0
TJMP NEG
MARK POS
TEST X = 0
TJMP END
LINK 800
SUBI X 1 X
JUMP POS
MARK NEG
TEST X = 0
TJMP END
LINK 802
ADDI X 1 X
JUMP NEG
MARK END
SEEK -3
COPY F X
WIPE
GRAB 200
MARK FIND
TEST F = X
TJMP REPL
SEEK 5
JUMP FIND
MARK REPL
COPY F X
COPY X F
COPY X F
COPY X F
COPY X F
Cycles | Size | Activity |
---|---|---|
52 | 42 | 6 |