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
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 P1bSC-2 standard
IN P0
OUT P1- CYCLES
- 159
- at par
- ENERGY
- 1170
- at par
- NODES
- 2
- at par
- INSTRUCTIONS
- 5
- at par