Level 3DebuggingWrite a program
Debug: data in the way
This program should add two inputs. It goes badly wrong, because memory cannot tell data from instructions. Move one line so it works.
Public tests
- input 2, 3 → 5
- input 200, 100 → 44
- input 0, 0 → 0
Scored on correctness: every test must pass. Skills: von Neumann memory, program layout.
New to this? Silicon Studio 13: Basic memory
How results are computed: model assumptions.
One instruction per line. Labels end with a colon, comments start with a semicolon. Numbers can be 12, 0x0C or 0b1100.