# Domains and speed Where the PC-98's domains and channels fall (charter, "Domains and channels") and whether the board reaches real time without recompilation (charter, "Capabilities"; emulator-lineage `docs/proposals/2026-11-jit.md`, accepted: the no-JIT path first). Phase 0: no board exists, so every speed figure is an **estimate** with its arithmetic shown. ## Domains and channels | Domain | Time base | Parts | Why one domain / the channel | | --- | --- | --- | --- | | **System** (order of record) | the SCLK crystal's ticks (4.9152 MHz on the original, 9.8304 / 7.9872 MHz on the VM) | the 8086 or V30 and its bus, RAM, ROM, the 8259A pair, the 8253 (its 2.4576 / 1.9968 MHz input is a fixed ratio of the same crystal: machines.md), the 8237A and its refresh channel, both GDCs' host interfaces **and** their VRAM cycles, the character generator, the GRCG, the 8255s, the 8251s' host side, the OPN's register file and timers | the GDCs share VRAM with the CPU and draw into it while the CPU runs; refresh (PIT counter 1 pacing, DMA channel 1 stealing) is visible within a bus cycle; the OPN's timers raise an interrupt the CPU sees. Splitting any of these puts a sync point on every bus cycle | | **320 KB drive subsystem** (original, E, F, M) | its Z80's 4 MHz clock (MAME), its own crystal | Z80, its ROM and RAM, its uPD765, its 8255 | meets the system **only at the cross-wired 8255 pair** (a byte with DAV/RFD/DAC/ATN handshake: fdc.md). The cleanest second domain in the machine, and the same device as the PC-8801's drive | | Floppy drives (1 MB / 640 KB interfaces) | rotation and bit time (2HD: 500 kbit/s; 2DD: 250 kbit/s: HYPOTHESIS, the usual MFM rates) | the uPD765A's data path, the drives, the images | meets the system at the FDC ports, DRQ2/DRQ3, TC, IR10/IR11; the controller's registers stay in the system domain (the VM's boot reads 90h 145,040 times: mame-oracle.md) | | Keyboard | its own microcontroller (U18) or a scan-code-time model | the keyboard | meets the system at the 8251's serial line: a slow byte channel | | Picture output (producer) | lines (400 x 56.42 Hz = 22,568 lines per second) | the dot serialiser, palette, the CRT | a **pure producer** from per-line snapshots of the display state (the GDCs' display addresses, the mode flip-flops, the palette, and VRAM changes logged per line) | | Sound output (producer) | samples | the OPN/OPNA synthesis from its register-write log, the beeper level log, the mixer | a pure producer; the OPN's timers and BUSY stay in the system domain | **Order of record** (x-python, serial): the system domain advances per bus cycle (the core runs to its next bus request; the board resolves the cycle's length from refresh, DMA, the GDCs' VRAM arbitration and wait states, then steps the PIT, the PIC and the GDCs to that tick); the drive subsystem's Z80 runs in its own clock and is brought level at each 8255 access from either side; the producers drain their logs. ## The need, with arithmetic | Quantity | Original (8086 @ 4.9152 MHz) | VM (V30 @ 9.8304 MHz) | | --- | --- | --- | | CPU clocks per second | 4,915,200 | 9,830,400 | | Bus cycles, at most (4 clocks each) | 1.23 M/s | 2.46 M/s | | Instructions per second | **~0.4-0.6 M** (HYPOTHESIS: 8-12 clocks per average instruction on the 8086) | **~1.0-1.6 M** (HYPOTHESIS: the V30's microcode takes fewer clocks for most instructions: V20/V30 manual section 12; 6-10 clocks per average instruction) | | 8253 ticks | 2.4576 M/s (bulk-counted between observations) | same | | GDC display fetches | text: 80 cells x 400 lines x 56.42 Hz = **1.81 M cell-lines/s**; graphics: 40 words x 400 lines x 56.42 Hz = 0.90 M word fetches/s per plane (3 planes; 4 on 16-colour models) | same | | GDC drawing | 800 ns per pixel at 5 MHz (GDCDM); at the PC-98's 2.5 MHz, ~1.6 us per pixel: at most ~0.6 M pixels/s while drawing | same | | OPN (-26K) | 3.9936 MHz / 72 = 55,467 FM samples/s (HYPOTHESIS: the OPN's default prescaler; YM2203DS to confirm) | same | | Drive Z80 | 4 MHz, ~0.5 M instructions/s while busy (HYPOTHESIS) | (none) | ## Tier by tier (estimates; `recompile: none` throughout) Anchors: colecovision-python (a 3.58 MHz Z80 board) runs at 0.6-2.9 x real time on PyPy (MEASURED on that sibling, as recorded by the zxspectrum-python, cpc-python and ibmpc-python Phase 0s); ibmpc-python estimates its 8088 board at ~0.1-0.4 x on PyPy; z80-rust ~50 M instructions per second (its README); z80-wasm runs a 3 MHz Z80 board at full speed in the browser (live). | Tier | Work per emulated second | Desktop | Phone (native app, no JIT) | Browser (wasm) | | --- | --- | --- | --- | --- | | x-python, PyPy | original: ~0.5 M x86 instructions + 1.2 M bus cycles + per-line video; VM: ~1.3 M instructions + 2.5 M bus cycles | original **~0.1-0.4 x** (HYPOTHESIS: comparable to ibmpc-python's estimate); VM **~0.05-0.2 x** (twice the CPU work) | - | - | | x-python, CPython | same | ~0.02-0.1 x | - | - | | x-rust | same | far above real time (a few million events per second against a family record of tens of millions of instructions per second per core) | above real time (estimate ~0.8 x desktop single-thread) | above (estimate ~0.6 x native) | | x-rust-fast | same, PIT and video in bulk between events; the drive subsystem on its own thread at the 8255 channel; picture and sound producers beside | far above; run-ahead 1-2 and rewind affordable | above, with run-ahead | above | **The no-JIT path reaches real time on desktop, phone and browser from x-rust on**, for the original and the VM. This is the JIT proposal's era-1 case: the CPU is a modest share of the work and nothing is gained by recompiling a 5-10 MHz x86. Threads are not needed for real time; the drive subsystem's channel and the producers are the natural splits if a weak handheld wants them. The 286/386/486 rows (recorded only) would need their own arithmetic: a 386 at 16-25 MHz with protected mode and paging is an era-2 load. **What Python means for testing:** MAME reaches the N88-BASIC(86) prompt at about 11-30 emulated seconds on the VM (mame-oracle.md: the I/O traffic ends at ~11 s, the prompt is shown by 32 s). At ~0.05-0.2 x that is **1-10 minutes** of PyPy per boot. Python rungs use short windows, small RAM switches and side-loaded test programs; long runs belong to the Rust tiers' lockstep. The numbers that would replace these estimates: i8086-python's instructions per second on its corpus (its rung 2), this board's emulated-to-wall ratio over the boot, and an instruction count from MAME over the boot window (a Lua counter on the CPU's debugger hook: the next detector run).