WORM Solution

SCRAMBLER

WORM row 6

In-game screenshot of SCRAMBLER
In-game view
FamilyWORM Graph0.555 Difficulty0.555 Ring04 IDw30

Prerequisites

MASKED RAMP

Unlocks

Luhn Lock

Reference rack program w30 solved
Active cores0, 1, 2, 3, 4 Program lines16 DetailWORM row 6

Walkthrough

SCRAMBLER: OUT = A XOR B for bit streams.

Core 1: relay B left to core 0 (wrap handles loop).

Core 0: read A from UP, subtract B from RIGHT, JNZ for differ=1 (wraps), equal=0 via JMP.

Core 3 and core 4 route the result to the output tap.

Rack Solution
# SCRAMBLER: OUT = A XOR B for bit streams.
# Core 1: relay B left to core 0 (wrap handles loop).
# Core 0: read A from UP, subtract B from RIGHT, JNZ for differ=1 (wraps), equal=0 via JMP.
# Core 3 and core 4 route the result to the output tap.
@1
MOV ACC, RIGHT
MOV LEFT, ACC
@0
L: MOV ACC, UP
   SUB RIGHT
   JNZ NZ
   MOV DOWN, 0
   JMP L
NZ: MOV DOWN, 1
@3
MOV RIGHT, UP
@4
MOV DOWN, LEFT
@2
MOV LEFT, UP