Syscall 2: Firmware, home

SignalChapter 2: Workshop

7FIXED STAGE

The task

P must receive 4 times each value from X, plus 8.

The middle core is locked and always quadruples what it reads.

The board

The board of FIXED STAGE3 cores: c0, c1, and c2. Locked: c1. Inputs X; outputs P.c0SC-2 15 LINESc1LOCKEDIN P0ADD AADD AOUT P1c2SC-2 15 LINESP0P1P0P1P0P1XP
The board as the puzzle screen lays it out. Cyan pins read, lemon pins write, violet pins go both ways. On a narrow screen, scroll the board sideways to see all of it.

Key idea

A locked core (times 4 with ADD A) you must work around.

Hints

Each hint goes a step further than the one before. Open them one at a time.

Hint 1Show

A locked core runs its own code. You cannot change it.

Hint 2Show

Adding 8 after the stage gives 4 times the value plus 8.

Hint 3Show

Or add 2 before the stage, since 4 times 2 is 8.

Solution

Reveal the Full SolutionThe complete program for FIXED STAGE. Open it only when you want the answer.

The reference program

The game's own solution. It passes every test and scores exactly par on every benchmark.

c0SC-2 standard

IN P0
OUT P1

c2SC-2 standard

IN P0
ADD 8
OUT P1
CYCLES
201
at par
ENERGY
1170
at par
NODES
2
at par
INSTRUCTIONS
5
at par

Another way: Two before

A second program that also passes, and matches par on every benchmark.

Adding 2 before the stage also works: 4 times (value plus 2).

c0SC-2 standard

IN P0
ADD 2
OUT P1

c2SC-2 standard

IN P0
OUT P1
CYCLES
201
at par
ENERGY
1170
at par
NODES
2
at par
INSTRUCTIONS
5
at par