Reference

Diagram Gallery

Every diagram in the course, indexed — plus two that live only here. The animated ones have PLAY / STEP / RESET controls; STEP is the best way to study them.

All diagrams by topic

DiagramTypeWhere
System block diagram — CPU, RAM, ROM, video, I/O, slots on one busStaticLecture 01 §3
6502 register set — A, X, Y, SP, PC and the flag byteStaticLecture 02 §2
Fetch–decode–execute — a real 2-instruction program, bus transaction by bus transaction★ AnimatedLecture 02 §3
Memory map — $0000–$FFFF with every named regionStaticLecture 03 §1
Memory-mapped I/O — keyboard read and speaker click through the address decoder★ AnimatedLecture 03 §2
Text-screen interleave — address-order memory landing on screen rows★ AnimatedLecture 04 §2
Hi-res byte anatomy — 7 pixels + palette bitStaticLecture 04 §3
Lo-res byte anatomy — two blocks per byteStaticbelow
Double buffering with page flipping★ Animatedbelow

Lo-res byte anatomy

One text-page byte in GR mode: value $D9 (%1101 1001) 1101 1001 high nibble = $D = 13 low nibble = $9 = 9 top block ← low nibble (9 = orange) bottom block ← high nibble (13 = yellow) One character cell = two lo-res "pixels" stacked. 40×24 characters → 40×48 blocks.
Static: why lo-res is 40×48. GR mode reuses text memory: each byte's low nibble colors the top half of the cell and the high nibble the bottom half, 16 colors each. PLOT x,y with even/odd y just edits one nibble of the right byte.

Double buffering with page flipping

The technique from Lecture 03 §4, animated: a ball moves smoothly because we always draw on the page the viewer can't see, then flip the display switch ($C054/$C055) between frames. The eye never catches a half-drawn frame.

PAGE 1 ($0400) PAGE 2 ($0800) WHAT THE VIEWER SEES soft switch: showing PAGE 1

Animated: page flipping. The bright border marks the page currently on display; drawing always happens on the other one. Each "flip" is a single soft-switch access — instant, tear-free. The same idea drives every modern GPU's swap chain.

Want more?

Each animated diagram's source is plain SVG + a small list of steps in the page's script — view-source on any page to see how they work, or use the pattern (in site.js) to build your own. A good exercise after Lecture 04: an animated hi-res row interleave diagram, which nests the text screen's trick three levels deep.