# Domains and speed ## Domains and channels - **M**: the 6502, the ULA, RAM/ROM, the VIA, the PSG's bus side. One 12 MHz crystal; the ULA interleaves its fetches with the CPU's inside every microsecond, so nothing stalls. One domain. - The PSG's sound generation is a pure producer driven by register writes (a log) and its 1 MHz clock; its port A (keyboard columns) is read synchronously, so the PSG stays in M for x-python. - A disk interface (later rows): the FDC on the CPU's bus with its own data-rate clock; in x-python stepped inside M. - Pure producers: the ULA's RGB stream, the PSG's audio, the tape edge stream into CB1. ## Instructions per second The 6502 runs at 1,000,000 cycles a second (12 MHz / 12, DIE). MAME's Atmos boot averages 3.69 cycles an instruction (OBSERVED): about **271,000 instructions a second**. The ULA: one CPU-cycle-sized step per microsecond (2 fetches, 6 pixels): 1,000,000 steps a second (or 6 M pixel steps). The VIA: 1 M ticks; the PSG: 1 M input clocks (its tone counters run at clock/8 or /16 per ay8910-python). ## The no-JIT path The lightest board of tonight's batch: a Rust transcription runs it in real time on desktop, phone and browser with `recompile: none`; no cached interpreter, no threads needed. Python on PyPy: expected real time or better (HYPOTHESIS), as the VIC-20 and NES precedents carry more. **Speed is trivial.**