# The MAME recipe (run 2026-11-26, MAME 0.285) MAME's binary is run, never built here; its Model 3 files are BSD-3-Clause and pinned for reading. One MAME process at a time, under `nice taskset -c 24-31`. ```sh python -I scripts/mame_trace.py --driver scud --snap 20 # untraced, PNG after 1,200 frames python -I scripts/mame_trace.py --driver scud --frames 1 # the PowerPC, traced (-nodrc) ``` Flags as in `../model2-python/docs/mame-oracle.md`; the PowerPC fields are `PC,LR,R1,MSR`. | Run | Result | | --- | --- | | `scud --snap 20` | 19.8 s wall; "Average speed: 120.60% (20 seconds)" **with MAME's PowerPC DRC**; the snapshot is the game's settings screen ("LINK ID MASTER ... NETWORK CHECKING ... THIS IS MASTER CONTROLLER"): with empty NVRAM the default link setting waits for a partner cabinet | | `scud --frames 1` (PowerPC, `-nodrc`) | 51,275 instructions over 1,738,415 MAME cycles (one frame at 100 MHz: 1/57.5 s), all in the boot ROM at 0xFFF00100 onwards; 1.3 MB; 3.9 s wall. The low count per cycle reflects MAME's accounting in an early boot loop, not the chip's throughput | MAME processes started for Model 3 in this phase: the two runs above and one Lua run listing the PowerPC's state symbols. ## Tags and symbols (Lua `device.state`) `:maincpu` (PowerPC): `PC LR CTR CR XER MSR R0-R31 F0-F31 FPSCR SR0-SR15 SDR1 SPRG0-3 SRR0 SRR1 DEC TBH TBL EVPR EXIER EXISR IOCR`. `:audiocpu` (68000): `PC SR A0-A6 D0-D7`. Others (`:dsbz80:mpegcpu`, `:dsb2:mpegcpu`, `:comm_board:m3commcpu`, `:billboard:billcpu`) from `-listxml`. ## Traps - Trace the PowerPC with `-nodrc`, or the DRC runs the code and the trace is empty. - Twin/deluxe sets need "Link ID: Single" in the game's assignments to get past the network check (M3's notes); a trace that needs gameplay must ship an NVRAM made once by hand, outside the repository. - All 62 sets are `preliminary`; M3's notes list which ones work.