Caffeinated Coder
Book an appointment
Lesson 02 · What software is

How a computer runs a program

A program sits on the disk as a file of numbers called machine code. To run it, the computer copies it into memory, and the CPU works through it with one simple loop, again and again: fetch the next instruction, decode what it means, execute it, move on. Follow a four-instruction program that adds 2 and 3, one cycle at a time.

10 min11 steps5 questionsBeginner
Fig 2 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.