Skip to content
Tactiverge
Level 1Program correctnessWrite a program

Say forty-two

Write a Bench-8 program that outputs the number 42 once and then halts. It reads no input.

Public tests

  • input none → 42

Par: 18 cycles in total over these tests. Skills: LDI, OUT, HALT.

New to this? Silicon Studio 15: A simple virtual processor

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.