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
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