Index

Module 02 · How Computers WorkThe machine runs a program

The CPU (fetch-decode-execute, the ISA, assembly)

The CPU
The CPU · Open board

The loop every chip runs, drawn as a circle: read the next instruction, work out what it wants, do it, then go back for the next one, with the one arrow that jumps out of the circle instead of moving to the next stop.

Before you start. Logic From Switches (transistors → gates → adder → memory) built an ALU, a circuit of gates that adds and compares numbers, and flip-flops, single bits of memory that hold a value until told to change. This lesson wires both into a chip that repeats one small loop forever, and by the end you can read the actual bytes that loop is running.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Related paper

Review How Computers Work →

Saved in this browser, and to your account when you sign in.