# The MAME oracle: a headless recipe, run 2026-11-26
MAME 0.285 is a detector (tier 5). Its Arcadia and VC 4000 drivers are GPL-2.0+: the
binary is run, the source is never opened.
## Recipe
`scripts/mame_trace.py` writes a Lua autoboot script and runs (a cartridge is required:
neither console has a BIOS):
```
mame arcadia -cart "$NO_INTRO_DIR/Emerson - Arcadia 2001/
.zip" -homepath \
-video none -sound none -nothrottle -noreadconfig -skip_gameinfo -log \
-seconds_to_run N -autoboot_script run.lua -debug -debugger none
```
with, in Lua: `dbg.visible_cpu = :maincpu`; `trace S.trace,:maincpu,noloop,{logerror "S
%X %X %X %X %X %X %d\n",pc,ps,r0,r1,r2,r3,totalcycles}`; `wpset 1800,400,w,1,{logerror "V
%X %X %d\n",wpaddr,wpdata,totalcycles; g}` (the UVI window; `1f00,100` for the VC 4000's
PVI); a frame notifier held in a global exits after N frames. MAME loads a zipped
cartridge with `-cart` directly. 2650 state symbols: see s2650-python's mame-oracle.md.
## Runs
| Run | Result |
| --- | --- |
| arcadia + Escape, 3 frames | 4,605 instructions in 44,745 clock periods (14,915 a frame: 895 kHz / 60); the most-written UVI bytes are the lower screen rows and 18BF |
| vc4000 + Golf, 3 frames | 5,763 instructions in 53,199 periods (17,733 a frame: 886.7 kHz / 50); PVI writes to the control block 1FC0-1FC6 and object descriptor 2 (1F16-1F1D) |
| snaps after 4 s | Escape: "GAME OVER" in its maze; Golf: the hole in green, magenta and yellow with the score digits |
Both traces start at period 0 with the instruction at 0000 (MAME logs "Soft reset" first:
filter lines by their `S ` prefix and a hex PC, not by `S` alone).