r0mheat z80 lessons

Z80 and 8086 ยท in the browser

Learn how a CPU runs a program

Follow assembly one instruction at a time. Watch the program counter fetch bytes, registers change, flags respond and memory receive data, first in guided lessons and then in two trainers where you write, assemble and debug your own programs.

Projects

Three pages that work together

A way through

You can start anywhere

  1. Learn the ideas.

    Binary, registers and flags in the Z80 lessons, one instruction at a time.

  2. Write and run code.

    Use the Z80 trainer: type a program, assemble it, step through it and solve the exercises.

  3. Compare with the 8086.

    See how segments, the DOS services and the stack change the same ideas in the 8086 trainer.