Syscall 2: Firmware, home

SignalChapter 1: Arrival

4BIAS

The task

Arithmetic works on A. Use ADD between IN and OUT to change a value on its way.

Every value from X must reach P raised by 25.

The board

The board of BIAS2 cores: a and b. Inputs X; outputs P.aSC-2 15 LINESbSC-2 15 LINESP0P1P0P1XP
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 arithmetic, ADD with a literal.

Hints

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

Hint 1Show

ADD 25 adds 25 to A, SUB 25 takes 25 away, and NEG flips the sign of A.

Hint 2Show

IN replaces A and OUT sends A as it is, so the ADD goes after the IN and before the OUT.

Hint 3Show

Core b only passes values along: IN P0, then OUT P1.

Solution

Reveal the Full SolutionThe complete program for BIAS. 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.

A adds 25 between the read and the write.

aSC-2 standard

IN P0
ADD 25
OUT P1

bSC-2 standard

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