# The MAME recipe (run 2026-11-26, MAME 0.285) MAME is a closed box tonight: run, never read. Its PC-FX files all carry `license:BSD-3-Clause` lines (read through raw.githubusercontent.com, first lines only, at tag `mame0285`, 2026-11-26): `nec/pcfx.cpp` (Wilbert Pol), `machine/pcfx_intc.*` (Wilbert Pol, Angelo Salese), `video/huc6261.*` (Wilbert Pol), `video/huc6270.*` (Wilbert Pol), `video/huc6271.*` (Angelo Salese), `video/huc6272.*` (Wilbert Pol, Angelo Salese), `sound/huc6230.*` (cam900). The family's rules would allow them with notice; whether to open them is open decision 5. Tier 5; driver status **preliminary**, save states unsupported; all 12 software-list entries `supported="no"`. ## Devices (`mame -listdevices pcfx`) `maincpu` NEC V810 @ 21.47 MHz; `huc6230` SoundBox @ 21.47 MHz containing `psg` "Hudson Soft HuC6280 PSG" @ 3.57 MHz; `huc6261` "Hudson HuC6261 VCE" @ 21.47 MHz; `huc6270_a`, `huc6270_b`; `huc6271` "Rainbow" @ 21.47 MHz; `huc6272` "King" @ 21.47 MHz with a `scsi` port (a `cdrom` "SCSI CD" on connector 1), `cdda`; `intc` "NEC PC-FX INTC"; `nvram`; `screen` @ 21.47 MHz. BIOS sets v100 and v101 (default), plus `fx-scsi.rom`. ## Command ```sh MAME_ROMPATH=... python -I scripts/mame_run.py --bios v101 --frames 600 --snap \ --tap pad=000-0FF --tap soundbox=100-1FF --tap rainbow=200-2FF --tap mixer=300-3FF \ --tap vdc-a=400-4FF --tap vdc-b=500-5FF --tap king=600-6FF --tap intc=E00-EFF \ --tap timer=F00-FFF # 4 s wall ``` The script passes `-bios v101 -rompath $MAME_ROMPATH -video none -sound none -nothrottle -noreadconfig -skip_gameinfo -snapshot_directory tests/mame_runs/snap -autoboot_script run.lua`; the Lua installs write taps on the V810's `io` space (globals, so they are not collected), counts writes per range, and at frame N prints them and the emulated time, saves a snapshot and exits. `--cdrom` takes a cue or CHD (MAME does not read Redump zips; not run tonight). For an instruction trace: `../v810-python/scripts/mame_trace.py --machine pcfx`. ## Observed - 600 frames = 10.0291 emulated seconds (16.715 ms per frame: 59.83 Hz). - The BIOS shows its menu with the PC-FX logo, five disc icons and "ディスクの種類を調べています" ("checking the disc type") with no disc: MAME's PC-FX gets that far. - Write counts per chip as in validation.md: the KING and both VDCs dominate; the Rainbow is touched 8 times (initialisation), the timer once. - The CPU's own trace (v810-python mame-oracle.md): the cache is cleared with CEC = 256 and enabled within the first 90,200 instructions. ## Output `tests/mame_runs/` (git-ignored): `snap/pcfx/0000.png`, `run.lua`, `cfg/`, `nvram/`. Snapshots show NEC's firmware output and stay out of the repository.