ChallengesArk-U
Local progress
All challengesBeginner15 min0 submissions
Ark-U challenge

Stack sum

Add 5 and 7 on Ark-U's operand stack.

Push both constants, combine them with the stack ALU, and pop the result into R1 before halting.

Learning goals

  • Use PUS and POP
  • Apply ADS to the top two values
  • Inspect R1

Tests

  • Program reaches HLT
  • R1 contains 12
  • Solution uses ADS
  • 1 hidden grading test

Hints

arku-stack-sum.auArk-U source
Run the visible tests or submit when you are ready.