WORM Solution

CROSSBAR

WORM row 4

In-game screenshot of CROSSBAR
In-game view
FamilyWORM Graph0.386 Difficulty0.386 Ring03 IDw16

Prerequisites

FOLD COUNTSUM CHECK

Unlocks

ECHO SHADOW

Reference rack program w16 solved
Active cores0, 1, 2, 3, 4, 5 Program lines23 DetailWORM row 4

Walkthrough

CROSSBAR: B selects the output tap for A.

B == 0 routes A to X. B == 1 routes A to Y.

Core 3 decides, then emits left or sends the value right.

Rack Solution
# CROSSBAR: B selects the output tap for A.
# B == 0 routes A to X. B == 1 routes A to Y.
# Core 3 decides, then emits left or sends the value right.
@0
MOV DOWN, UP
MOV ACC, RIGHT
MOV DOWN, ACC
@1
MOV ACC, RIGHT
MOV LEFT, ACC
@3
T: MOV ACC, UP
SAV
MOV ACC, UP
JZ L0
XCH
MOV RIGHT, ACC
JMP T
L0: XCH
MOV DOWN, ACC
@4
MOV RIGHT, LEFT
@5
MOV DOWN, LEFT
@2
MOV LEFT, UP