WORM Solution
CALL METER
WORM row 4

Prerequisites
Unlocks
w17 solved
Active cores1, 4, 7
Program lines16
DetailWORM row 4
Walkthrough
CALL METER: running sum; nonzero IN accumulates, IN=0 emits the sum + resets.
Left column (0,4,8). Core 0 fans each value twice DOWN; core 4 keeps the
running sum in ACC, reading the two copies one cycle apart (ADD then MOV).
Rack Solution
# CALL METER: running sum; nonzero IN accumulates, IN=0 emits the sum + resets.
# Left column (0,4,8). Core 0 fans each value twice DOWN; core 4 keeps the
# running sum in ACC, reading the two copies one cycle apart (ADD then MOV).
@1
MOV ACC, UP
MOV DOWN, ACC
MOV DOWN, ACC
@4
L: ADD UP
SAV
MOV ACC, UP
JNZ K
XCH
MOV DOWN, ACC
XCH
JMP L
K: XCH
@7
MOV DOWN, UP