WORM Solution

DEBOUNCE

WORM row 5

In-game screenshot of DEBOUNCE
In-game view
FamilyWORM Graph0.443 Difficulty0.443 Ring03 IDw21

Prerequisites

CHECK DIGIT

Unlocks

ROLL CAGE

Reference rack program w21 solved
Active cores1, 4 Program lines11 DetailWORM row 5

Walkthrough

DEBOUNCE: drop consecutive duplicates.

CORE 1 sends each input twice. CORE 4 compares against the previous emitted value.

Rack Solution
# DEBOUNCE: drop consecutive duplicates.
# CORE 1 sends each input twice. CORE 4 compares against the previous emitted value.
@1
MOV ACC, UP
MOV DOWN, ACC
MOV DOWN, ACC
@4
L: SUB UP
JNZ E
MOV ACC, UP
JMP L
E: MOV ACC, UP
MOV DOWN, ACC