# x86 as a reference CPU: scope and size, said plainly Evidence tags as in the methodology. Every count below was made on a pinned file and says which. ## How big it is The family's other CPUs fit on a page of opcodes. This one does not. - **Instruction classes.** Intel's own encoder-decoder, XED (`reference/src/xed`, Apache-2.0, `0bcb623`), defines the Pentium III as the ISA sets of the Pentium II plus `SSE SSEMXCSR SSE_PREFETCH` (`datafiles/xed-chips.txt`, lines 62-73). Counting the distinct `ICLASS` values in `datafiles/xed-isa.txt` whose `ISA_SET` belongs to that chip gives **about 462 instruction classes**: I86 122, I186 22, I286 16, I386 57, I486 10, X87 79, Pentium 5, MMX 60, CMOV/FCMOV/FCOMI 28, FXSAVE 2, SSE 46 + 6, and a handful of P6 system instructions (SYSENTER/SYSEXIT, RDPMC, UD2, the long NOP). The 8086's own set is the 122 I86 classes (i8086-python's scope). So the Pentium III has **about 4x the 8086's mnemonics**, and each mnemonic has more forms: 16- and 32-bit operand and address sizes (the 66h and 67h prefixes), SIB addressing, segment overrides, LOCK and REP, and three operating modes in which the same bytes behave differently. - **Machine state.** Eight 32-bit GPRs, EIP, EFLAGS; six segment registers each with a hidden descriptor cache (base, limit, attributes); GDTR, IDTR, LDTR, TR; CR0, CR2, CR3, CR4; DR0-DR7; the x87 stack of eight 80-bit registers with control, status and tag words and the last-instruction pointers; eight 64-bit MMX registers aliased onto the x87 mantissas; eight 128-bit XMM registers and MXCSR; the TSC; dozens of MSRs (MTRRs, the APIC base, SYSENTER, performance counters, machine check). DOC: SDM vol. 3 (245472-012), Table 9-1 and chapter 10. - **System architecture.** Real mode, 32-bit protected mode with four privilege levels, call gates, task switches through TSSs, virtual-8086 mode, system management mode; two-level paging with 4 KB and 4 MB pages, global pages, PAE and PSE-36; precise exceptions with error codes and double/triple fault rules; the 8259/APIC interrupt model. DOC: SDM vol. 3. - **The x87.** 80-bit extended arithmetic with precision control, four rounding modes, denormals, unmasked-exception behaviour, and transcendental instructions (FSIN, FCOS, FPTAN, FPATAN, F2XM1, FYL2X, FYL2XP1) whose last-bit results are an implementation property, not an IEEE one. DOC: SDM vol. 1 chapter 8. ## What the Xbox actually needs (the scope proposed) The Xbox runs one kernel (an NT 5.0 derivative, xboxdevwiki `Boot Process` r7377) and one kind of program (XBE titles linked against Microsoft's libraries), so the scope can follow the machine instead of the architecture: | Feature | In? | Why (tag) | | --- | --- | --- | | Real mode, 16-bit code | **the reset path only** | the CPU starts at FFFFFFF0h in real mode with CS base FFFF0000h (SDM vol. 3, Table 9-1); MAME's trace shows the MCPX ROM loading the GDT and IDT in its first instructions (OBSERVED, mame-oracle.md) and switching to protected mode at once | | 32-bit protected mode, flat segments, ring 0 and ring 3 | yes | the kernel and titles (HYPOTHESIS: titles run at ring 0 like the kernel; to confirm on the board) | | Paging, 4 KB and 4 MB pages, global pages | yes | MAME's trace of BIOS 4134 reaches CR0 = 80010031h (PG, WP, NE, ET, PE) within one frame (OBSERVED) | | PAE, PSE-36 | out until shown needed | 64 MB of RAM gives no reason; HYPOTHESIS | | Virtual-8086 mode, task switches, call gates | out until shown needed | nothing in the Xbox's software model calls for them; HYPOTHESIS, each one raises #UD-like "not modelled" in the specification so a board run finds out | | SMM | out | no SMI source is documented on the board (xboxdevwiki `MCPX`, `PCI`) | | x87, MMX, SSE (and the SSE integer additions to MMX) | yes | Microsoft's D3D and maths libraries use SSE (HYPOTHESIS, to count on the board); abaire's hardware tests cover all three | | SSE2 and later | out: #UD | not on a Coppermine (XED `PENTIUM3` excludes SSE2) | | Caches, TLBs, MTRRs, the local APIC | modelled as far as software can see them | see timing.md and system.md | | CPUID, RDTSC, RDMSR/WRMSR | yes | the kernel reads them; RDTSC is Xbox time (system.md) | That is still most of IA-32. It is the biggest CPU the family would specify by a wide margin, and the specification will be long. ## What "reference" can mean for this CPU A reference CPU in this family is readable, judged rung by rung against tiered oracles, and defines time. For the Pentium III: 1. **Results can be judged well.** Architectural results (registers, flags that are defined, memory, exceptions) are documented by Intel in detail (tier 2), and **every x86 machine on a desk is a hardware oracle for them**: this machine's i9-13900K executes the same 32-bit instructions with the same defined results (tier 1 for "an IA-32 processor", validation.md). What a modern CPU cannot judge is what is specific to the P6: undefined flags, x87 transcendental last bits, the SSE reciprocal approximations, CPUID, timing. For those the Xbox-captured tests (abaire's suites, tier 1 for a 1.0 Xbox) and Intel's documents are the judges. 2. **Time cannot be judged per cycle.** The P6 core is out of order and speculative, with a 40-micro-op reorder buffer, a 20-micro-op reservation station and five ports (DOC: 245127-001 chapter 1 and appendix A, "Scheduling for the Reorder Buffer and the Reservation Station"). No public document gives the scheduler's policy, and no hardware capture of a P6's bus cycles exists in any corpus we know of. So "cycle exact" in the family's sense, every bus cycle identical **to the hardware**, is not reachable, and the specification must say so. What *is* reachable is a **defined timing model**: deterministic, documented, judged in aggregate, and identical between tiers bus cycle by bus cycle (timing.md). 3. **Speed is a different question from the other CPUs.** At 733 MHz with typical IPC below one, the guest executes several hundred million instructions per second. The Python specification will run at roughly a thousandth of that (handoff-brief.md, "Domains and speed"). It is a specification and a test oracle, nothing more; the board's gate cases are test programs and slices (the late-era method). ## Tests that exist (the survey asked for) | Corpus | CPU | Mode | Captured on | Fits the P3? | | --- | --- | --- | --- | --- | | SingleStepTests 8088, 8086 | AMD D8088; Intel P80C86A-2 | real | hardware (Arduino) | 16-bit real-mode subset only (i8086-python's judges) | | SingleStepTests v20 | NEC V20 | real | hardware | no (NEC) | | SingleStepTests 80186, 80286 | Intel 80186, 80286 | real | hardware | real-mode 186/286 subset | | **SingleStepTests 80386** (`459d49f`, v1.0.0) | Intel 386EX (KU80C386EX33) | **real mode only** in v1; unreal, protected and V86 sets announced, not published | hardware (ArduinoX86 on an Arduino GIGA), each test generated twice and replayed | register results of the 386 instruction set in real mode, 32-bit operands by prefix; **not** P6 timing (16-bit bus, SMM-lengthened microcode, README) | | anything 486, Pentium, P6 or later | - | - | - | **none found** (GitHub's SingleStepTests organisation listed 2026-11-26; web search) | | abaire/nxdk_low_level_cpu_tests (`d7a6e7e`) | the Xbox's CPU | protected, ring 0 under nxdk | a 1.0 Xbox (README) | **yes**: x87 precision and rounding, SSE min/max/compare/approximation/MXCSR/FTZ, MMX and the SSE integer additions, x87/MMX aliasing; TestFloat over the x87 | | Berkeley TestFloat 3 / SoftFloat 3 (BSD-3) | a software model | - | generated by SoftFloat | IEEE results incl. extF80; run on hardware it measures that hardware | So the newest hardware-generated per-instruction corpus is the 386EX's, in real mode. For everything after it, the judges are Intel's documents, tests run on an Xbox, and whatever this project generates on a host CPU itself (validation.md, rung 2).