The control unit
How Ben builds this
Flags: how JC and JZ decide
ADD and SUB end with EO AI FI. FI (Flags In) makes the 74LS173 flags register save two facts about the ALU's answer: CF, the carry (the answer needed a 9th bit), and ZF, zero (the answer was 0).
Ben wires CF and ZF into two more EEPROM address pins. So the table gets a second copy of every row: one for "flag is 0" and one for "flag is 1".
JC (opcode 7, jump if carry): in the copy where CF = 1, T2 is IO J, so the PC jumps. Where CF = 0, T2 is empty, so the PC just carries on to the next line. JZ (opcode 8) works the same way with ZF.
That is how a CPU makes a decision, like an if in code: the flags change the EEPROM address, so a different control word comes out.
Run log: every tick
CLK