WORM Solution

SCALE PAIR

WORM row 10

In-game screenshot of SCALE PAIR
In-game view
FamilyWORM Graph0.928 Difficulty0.928 Ring05 IDw51

Prerequisites

Golden Stream

Unlocks

Check Digit

Reference rack program w51 solved
Active cores0, 1, 2, 3, 6, 7 Program lines15 DetailWORM row 10

Walkthrough

SCALE PAIR: OUT = A * B (true variable times variable, signed).

A feeds core 0 (UP, stream 0); B feeds core 1 (UP, stream 1).

core 1 forwards B LEFT into core 0's RIGHT. core 0 loads A, multiplies by the

live B with one MUL (a repeated-add loop would have to sign-handle both

operands and iterate up to 31 times; MUL is the natural one-cycle tool), then

sends the product DOWN the left column: core 0 -> core 3 -> core 6 (output 0).

Rack Solution
# SCALE PAIR: OUT = A * B (true variable times variable, signed).
# A feeds core 0 (UP, stream 0); B feeds core 1 (UP, stream 1).
# core 1 forwards B LEFT into core 0's RIGHT. core 0 loads A, multiplies by the
# live B with one MUL (a repeated-add loop would have to sign-handle both
# operands and iterate up to 31 times; MUL is the natural one-cycle tool), then
# sends the product DOWN the left column: core 0 -> core 3 -> core 6 (output 0).
@0
MOV ACC, UP
MUL RIGHT
MOV DOWN, ACC
@1
MOV ACC, RIGHT
MOV LEFT, ACC
@3
MOV DOWN, UP
@6
MOV RIGHT, UP
@2
MOV LEFT, UP
@7
MOV DOWN, LEFT