# jrisc-python A readable, pure-Python core of the **Atari Jaguar's two RISC processors**, planned: the Graphics Processor (GPU) in Tom and the DSP in Jerry, one design by Flare II in two variants (the community calls it JRISC). 16-bit instructions, 2 x 32 registers, a prefetch queue with a mandatory delay slot, a scoreboard that protects reads but not writes, a background divider, MAC and systolic matrix multiply, five or six interrupt sources. The console is the board, [jaguar-python](../jaguar-python); the CoJag arcade boards use the same processors. **Status (2026-11-12): Phase 0 complete.** No core code exists. What exists is the research, the pinned oracles and the handoff brief for the session that builds it: - the designers' own netlists of Tom and Jerry are public, with the GPU's microcode ROM; the DSP's ROM is missing and six DSP words are known only by reconstruction ([docs/netlists.md](docs/netlists.md)); - both opcode maps with flags, read from the manual and from the microcode, with where they disagree ([docs/instruction-set.md](docs/instruction-set.md)); - the pipeline, the delay slot, the scoreboard and every documented hardware bug with its owner ([docs/pipeline-and-bugs.md](docs/pipeline-and-bugs.md)); - interrupts read from the netlist ([docs/interrupts.md](docs/interrupts.md)), timing and a frank speed note ([docs/timing.md](docs/timing.md)); - every oracle with its tier, and the plan for a per-instruction corpus generated from netlist-derived Verilog ([docs/validation.md](docs/validation.md)); - a verified headless MAME 0.285 recipe for console and CoJag ([docs/mame-oracle.md](docs/mame-oracle.md)). **There is no hardware-captured data for either processor.** The nearest thing is the netlist, read by hand here and simulable (the netlist-derived Verilog elaborates under Verilator with no errors); nothing was simulated in Phase 0. ## What is fetched Nothing third-party is committed. `scripts/fetch_references.py` rebuilds `reference/` from `scripts/pinned_files.json` (the *Technical Reference Manual* rev. 8, Atari's 1995 *Hardware Bugs & Warnings*, the jagdox RISC page, an archived AtariAge thread, all by SHA-256) and `scripts/pinned_repos.json` (10 repositories at full commit SHAs, sparse where large): Torlus's JagNetlists, the MiSTer Jaguar core, MAME 0.285's source, Virtual Jaguar (classic and libretro), TomNJerry, jrisc_tools, gpudbug, rmac and vasm. ```sh python -I scripts/fetch_references.py # fetch what is missing python -I scripts/fetch_references.py --verify # check every pin ``` They need `git`, `curl` and `pdftotext` (poppler). No sudo. ## Scripts | Script | What | | --- | --- | | `fetch_references.py` | fetch and verify the pinned files and repositories | | `opcode_tables.py` | three opcode tables side by side (manual, jrisc_tools, MAME); the closed-box columns went 2026-11-25 (docs/provenance.md) | | `mcode_table.py` | **retired 2026-11-25**: read JagNetlists (no licence); stops with a message, its table is owed | | `netlist_comments.py` | **retired 2026-11-25**: printed JagNetlists text; stops with a message | | `lint_referee.py` | **retired 2026-11-25**: its Verilog islands (MiSTer RTL, JagNetlists) are not kept; stops with a message | | `mame_trace.py` | MAME's per-instruction trace of the GPU or DSP | Run anything that reads `reference/` with `python -I`. Traces go in `tests/mame_traces/` (gitignored); never commit ROMs, traces or fetched files. ## Documents [docs/README.md](docs/README.md) is the index; [docs/handoff-brief.md](docs/handoff-brief.md) ends with the open decisions for the owner. MIT licensed ([LICENSE](LICENSE)).