Take the zero branch
Use JCR to skip the wrong value and leave 9 in R2.
R1 starts at zero. Add a register-relative conditional jump to success so R2 finishes with 9.
Learning goals
- Compare a register with zero
- Use a labelled JCR target
- Preserve the successful path
Tests
- Program reaches HLT
- R2 contains 9
- Solution uses JCR
- 1 hidden grading test