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