WORM Solution
LINE NOISE
WORM row 4

w18 solved
Active cores1, 2, 3, 4
Program lines27
DetailWORM row 4
Walkthrough
LINE NOISE: output 1 when the change from the previous input is above 10.
The first output is forced to 0.
Rack Solution
# LINE NOISE: output 1 when the change from the previous input is above 10.
# The first output is forced to 0.
@1
M: MOV ACC, UP
MOV RIGHT, ACC
SUB RIGHT
MOV DOWN, ACC
JMP M
@2
H: MOV ACC, LEFT
XCH
MOV LEFT, ACC
JMP H
@4
MOV NIL, UP
MOV DOWN, 0
L: MOV LEFT, UP
MOV DOWN, LEFT
JMP L
@3
A: MOV ACC, RIGHT
JG P
NEG
P: SUB 11
JL Z
MOV RIGHT, 1
JMP A
Z: MOV RIGHT, 0
JMP A