WORM Solution
TRUNK HUNT
WORM row 7

Prerequisites
Unlocks
w33 solved
Active cores0, 1, 2, 3, 4
Program lines19
DetailWORM row 7
Walkthrough
TRUNK HUNT: core 0 reads A and B each slot.
If A is nonzero, drop B and emit A. Otherwise emit nonzero B.
Core 1 relays B left each slot. Core 3 and core 4 route output to the center tap.
Rack Solution
# TRUNK HUNT: core 0 reads A and B each slot.
# If A is nonzero, drop B and emit A. Otherwise emit nonzero B.
# Core 1 relays B left each slot. Core 3 and core 4 route output to the center tap.
@1
L: MOV ACC, RIGHT
MOV LEFT, ACC
JMP L
@0
L: MOV ACC, UP
JNZ EM
MOV ACC, RIGHT
JZ L
MOV DOWN, ACC
JMP L
EM: MOV NIL, RIGHT
MOV DOWN, ACC
@3
MOV RIGHT, UP
@4
MOV DOWN, LEFT
@2
MOV LEFT, UP