WORM Solution
COMMAND CHANNEL
WORM row 7

Prerequisites
Unlocks
w35 solved
Active cores0, 1, 2, 3, 4
Program lines22
DetailWORM row 7
Walkthrough
COMMAND CHANNEL: B selects a transform of A.
core 1 turns B into a jump distance 2B+1; core 0 keeps A in ACC and JRX RIGHT
lands on the matching one-op handler (A+1 / A-1 / 2A / 0) into a shared emit.
The result travels through core 3 and core 4 to the output stream.
Rack Solution
# COMMAND CHANNEL: B selects a transform of A.
# core 1 turns B into a jump distance 2B+1; core 0 keeps A in ACC and JRX RIGHT
# lands on the matching one-op handler (A+1 / A-1 / 2A / 0) into a shared emit.
# The result travels through core 3 and core 4 to the output stream.
@1
MOV ACC, RIGHT
ADD ACC
ADD 1
MOV LEFT, ACC
@0
MOV ACC, UP
JRX RIGHT
ADD 1
JMP E
SUB 1
JMP E
ADD ACC
JMP E
SUB ACC
E: MOV DOWN, ACC
@3
MOV RIGHT, UP
@4
MOV DOWN, LEFT
@2
MOV LEFT, UP