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
-
LESSONS
Z80 lessons
An interactive course of 35 pages. Each lesson animates a small program: the program counter, the registers, the flags, the memory and the buses.
- Number basics: binary, hexadecimal, two's complement
- Loops, the stack, strings, tables, sorting, interrupts
-
TRAINER
Z80 trainer
A Z80 assembler, disassembler and debugger that run in the page, with 31 lessons and exercises that check your program.
- Step, breakpoints, watches, interrupts (INT and NMI)
- Suggestions while you type, examples, a Z80 reference
-
TRAINER
8086 trainer
The same idea for the 8086: an assembler close to nasm, a debugger with segments, DOS services and 27 lessons.
- Segments, the stack, strings, interrupts and the prefetch queue
- Suggestions while you type, examples, an 8086 reference
A way through
You can start anywhere
- Learn the ideas.
Binary, registers and flags in the Z80 lessons, one instruction at a time.
- Write and run code.
Use the Z80 trainer: type a program, assemble it, step through it and solve the exercises.
- Compare with the 8086.
See how segments, the DOS services and the stack change the same ideas in the 8086 trainer.