# MAME 0.285 as a closed-box detector The same recipe as [namcos1-python's](../../namcos1-python/docs/mame-oracle.md), with System 2's tags. One MAME process at a time, a few emulated seconds per run; the binary only. ```sh MAME_ROMPATH=... python -I scripts/mame_trace.py valkyrie --cpu main --seconds 2 MAME_ROMPATH=... python -I scripts/mame_trace.py valkyrie --cpu slave --seconds 5 MAME_ROMPATH=... python -I scripts/mame_trace.py valkyrie --cpu sound --seconds 5 MAME_ROMPATH=... python -I scripts/mame_trace.py valkyrie --cpu c65 --seconds 5 MAME_ROMPATH=... python -I scripts/mame_trace.py sws --cpu c68 --seconds 5 ``` Tags and register symbols (probed): `:maincpu`, `:slave` (68000: pc sr d0 d1 a0 a7 traced); `:audiocpu` (6809); `:c65mcu:mcu` (HD63705Z0: pc a x s cc); `:c68mcu:mcu` (M37450: pc a x y sp p). Output: `reference/mame/-/error.log`, one `T ...` line per instruction ending `totalcycles frame beamy`. ## What the runs showed (2026-11-26) | Run | Released at frame | Instructions | Cycles | Rate | | --- | --- | --- | --- | --- | | valkyrie main, 2 s | 0 | 2,282,756 | 24,735,742 by frame 121 | 12.29 MHz; 1.14 M instr/s | | valkyrie slave, 5 s | 141 | 2,018,032 | 32,872,618 by frame 303 | 12.29 MHz; 0.76 M instr/s | | valkyrie sound, 5 s | 160 | 1,558,951 | 4,835,916 | 2.05 MHz; 0.66 M instr/s | | valkyrie C65, 5 s | 141 | 407,986 | 1,369,688 | 0.51 MHz; 0.15 M instr/s | | sws C68, 5 s | 151 | 1,469,540 | 5,145,995 | 2.05 MHz; 0.59 M instr/s | A first 2-second run of the slave, sound CPU and C65 traced **nothing**: they are held in reset for the first 2.3-2.6 s of boot (OBSERVED), released by the main CPU (HYPOTHESIS: through the C148). Traces therefore need at least 3 s to see them. `scripts/mame_maps.lua` printed the address maps of valkyrie, sws and finallap ([memory-map.md](memory-map.md)).