Episode 7: Jumps and Loops

Coming soonEpisode 7 is on its way to @AITeacher-pro
Straight-line programs run once and stop. By overwriting the program counter the CPU can jump, and by testing a result with the zero flag it can decide, which gives us loops and a countdown.
You will learn
- How a jump overwrites the program counter
- How subtraction and the zero flag let a CPU test a value
- How jump-if-zero makes a decision
- How loops do the real work in programs
🎮 Now build it: Chapter 7, Program it
Practise what this episode showed in the free Build a CPU game. You place the real chips, wire them and test them yourself.
Play Chapter 7