# Domains and speed ## Domains and channels - **M**: the 7501, TED, RAM/ROM, PLA, the 6529s, the keyboard, the expansion port. One crystal (14.31818 / 17.734475 MHz); TED is the clock source and sets every CPU cycle's length. Coupled every half cycle: one domain. - **A**: the 6551 ACIA's baud generator runs from its own 1.8432 MHz crystal (SM Y2). Its register interface is in M; its bit timing is a separate clock. Channel: the ACIA's registers and its serial lines. Only matters with something on the user port. - **D**: a drive, when attached: the 1541 (own 16 MHz crystal) on the IEC channel, or the 1551 (6510T at 2 MHz) on the TCBM channel (TPI handshake lines and the 8-bit port). - Pure producers: TED's pixels, TED's sound output, the tape pulse stream (timestamped edges into the port). The order of record in x-python: M stepped per TED dot (or half cycle), D stepped on its own clock and synchronised at every IEC/TCBM line change or read. ## Instructions per second (NTSC) - 7501: TED's windows (ted.md) give per display line 400 dots of single clock (50 cycles) and 56 dots of double clock (14 cycles) = 64 cycles; per border or retrace line 40 dots single (5) + 416 dots double (104) = 109 cycles. 205 display lines + 57 others = 13,120 + 6,213 = 19,333 cycles a frame, less 50 DMA lines x 40 cycles = 2,000: about **17,300 cycles a frame x 59.9 Hz = 1.04 M cycles a second** (arithmetic from TEDDS, HYPOTHESIS until a measured test). At MAME's observed 3.35 cycles an instruction: about **310,000 instructions a second**. - TED: 456 dots x 262 lines x 59.9 Hz = 7.16 M dot steps a second if stepped per dot; 0.9 M if stepped per character cycle with dot work batched. - With a 1541: another 1.0 M cycles (~283,000 instructions); a 1551: 2.0 M cycles (~560,000 instructions, at the same mix: HYPOTHESIS). ## The no-JIT path Comparable to the C64 and VIC-20 boards: a Rust transcription reaches real time on desktop, phone and browser with `recompile: none` (the NES, 2600 and Game Boy precedents carry heavier loads); a cached interpreter is not needed; threads pay only at the drive channel. Python on PyPy: expected near real time for the computer alone (HYPOTHESIS), enough for its tests. **Speed is trivial here.**