Syscall 2: Firmware, home

SignalChapter 1: Arrival

1FIRST SIGNAL

The task

Use IN to read a value from a pin and OUT to write it to another.

Every value from X must reach P.

The board

The board of FIRST SIGNAL1 core: a. Inputs X; outputs P.aSC-2 15 LINESP0P1XP
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

IN reads a value from a pin into A, OUT writes A to a pin.

Hints

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

Hint 1Show

IN P0 reads a value from pin P0 into A. It waits until a value arrives.

Hint 2Show

OUT P1 writes A to pin P1. It waits until the other end takes the value.

Hint 3Show

Read first, then write. After its last line, a program starts again from the top.

Solution

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

Read a value, then write it.

aSC-2 standard

IN P0
OUT P1
CYCLES
118
at par
ENERGY
468
at par
NODES
1
at par
INSTRUCTIONS
2
at par