# MAME as a detector for the board (tier 5, closed box) MAME 0.285 runs the 3DO (`misc/3do.cpp`, Angelo Salese and Wilbert Pol) as `3do_fz1`, `3do_fz10`, `3do_fz10e`, `3do_fz10j`, `3do_fz1e`, `3do_fz1j`, `3do_fc1`, `3do_fc2`, `3do_gdo101`, `3do_hc21`, `3do_try`, plus `alg3do`, `md23do`, `sht3do`, `orbatak`. Devices (`mame -listdevices 3do_fz1`): `maincpu` ARM7 (big) 12.50 MHz, `madam` "MN7A020UDA Madam Address Decoder", `clio` "MN7A02IUDB Clio I/O controller" with `dspp` "3DO DSPP", `amy` "DA9103KPJ-XN Amy Digital Color Encoder", `cdrom` CR-560-B, `nvram`, two 16-bit DACs, `screen` 24.54 MHz. Licence lines (each file's first 160 bytes only, fetched with an HTTP range at tag `mame0285` = `f379cd0`; the source was not opened): `misc/3do.cpp`, `3do_clio.cpp`, `3do_madam.cpp`, `3do_m.cpp` (Angelo Salese, Wilbert Pol), `3do_amy.cpp`, `3do_portfolio.cpp` (Angelo Salese), `devices/cpu/dspp/dspp.cpp` (Philip Bennett), `dsppdasm.cpp` (Philip Bennett, AJR), `devices/machine/cr560b.cpp` (Angelo Salese), `devices/cpu/arm7/arm7.cpp` (Steve Ellenoff, R. Belmont, Ryan Holtz), `konami/3dom2.cpp` (Philip Bennett): all `license:BSD-3-Clause`. They stay closed (the brief; open decision 4). `hash/3do.xml` is `license:CC0-1.0` and is pinned. ## The recipe (run) ```sh MAME_ROMPATH=... python -I scripts/mame_run.py --machine 3do_fz10 --frames 600 ``` `mame_run.py` runs MAME headless (`-video none -sound none -nothrottle -noreadconfig -skip_gameinfo -autoboot_script`) with a Lua script that installs a write tap and a read tap on the CPU's program space over 0x0330_0000-0x0340_FFFF (`space:install_write_tap`, `install_read_tap`, held in globals so they are not collected), counts accesses per address, saves a snapshot at the last frame (`manager.machine.video:snapshot()` works with `-video none`), prints the counts and exits. Output: counts only (`tests/detectors/ mame-registers-fz10-600frames-2026-11-26.txt`); the snapshot (3DO artwork) stays in the git-ignored `tests/mame_traces/snap/`. CPU traces: arm60-python's `scripts/mame_trace.py`. ## Results (2026-11-26, `3do_fz10`, panafz10.bin, no disc) - 600 frames = 10.235 s emulated (58.6 frames per emulated second: MAME's frame notifier on this driver; not checked further) in 3.2 s wall: MAME runs the idle BIOS at about 3x real time on one core. - The snapshot at frame 600 shows the 3DO logo, rendered by MAME's cel engine (MAME's raw screen is 1280 x 240). - 567 register addresses touched. Busiest: CLIO VCNT 0x034 (1,074,043 reads), timers 0x100/0x108/0x110 (4,309-8,618 reads), interrupt registers 0x040-0x04C (thousands), timer control 0x200/0x204 (4,988/4,258 writes), MADAM fences 0x218/0x21C/0x238/0x23C (2,645 writes each), MADAM 0x000 (1,039 writes: the debug output port), 0x008 (506 writes); the whole DMA stack 0x400-0x53C written once; the player-bus group 0x570-0x578 239 times; CLIO 0x1800-0x19A8 written once each (DSP memory at start-up). - CPU traces of the same machine: arm60-python docs/mame-oracle.md. ## What MAME can and cannot decide It finds differences over long runs (register sequences, pictures, sound); it decides nothing. Its ARM60 is an ARMv4 core; its timing, cel-engine and DSP models are its authors'; its history with FreeDO-derived knowledge is unknown (provenance.md). No disc was run (the compute rule); a later session may run one or two discs from `$REDUMP_DIR` one at a time as detector baselines.