# MAME as a detector (closed box, tier 5) MAME 0.285 (`mame`, the system build) has **no Nintendo 3DS machine and no ARM11 MPCore device**. `mame -listdevices` (run 2026-11-26, 881,937 lines) lists these ARMv6 CPU devices: "ARM1176JZF-S" in `iphone2g` (412 MHz) and the `kov3hd` family (800 MHz), and "ARM11" in `zeebo` (528 MHz). `mame -verifyroms` against `$MAME_ROMPATH`: `iphone2g` good; `kov3hd` bad (`kov3hd_m105` not found). The firmware in those sets (Apple's, IGS's) is run in place, never copied, never read. **Closed box**: MAME's source is never opened; its ARM11-family code was not even checked for its licence line (decision A5 in the brief: the same question arm946es-python asked for MAME's BSD-3 ARM files). ## The recipe (run 2026-11-26) ```sh export MAME_ROMPATH="" # holds iphone2g.zip python -I scripts/mame_trace.py --state # STATE :maincpu AR13 AR14 AR16 CPSR CURFLAGS CURPC FR10 FR11 ... GENPC IR13 ... LOGTLB PC R0 ... R15 SR13 ... UR16 python -I scripts/mame_trace.py --frames 1 --regs CPSR,R0,R13 --out tests/mame_traces/iphone2g-boot.trace # TIME 0.012800 s # iphone2g:maincpu: 2265489 instructions traced to tests/mame_traces/iphone2g-boot.trace ``` 35.6 s of wall time for one frame (load average about 13), output 155 MB, in the git-ignored `tests/mame_traces/`. The script writes a Lua file that sets `dbg.visible_cpu` to the device and issues `trace ,,noloop,{tracelog "CPSR=%08X ..."}` (the form arm946es-python found works for a non-default CPU), then `trace off` and exits after `--frames` frames (`emu.add_machine_frame_notifier`, held in a global). First line: `CPSR=000000D3 R0=00000000 R13=00000000 00000000: B 0x000000C4` (reset at 0, supervisor mode, IRQ and FIQ masked). ## What the one frame exercised A mnemonic histogram of the 2,265,489 lines (counting mnemonics only; the program's flow was not studied): about 99 % is a three-instruction polling loop (`LDR`, `CMP`, `BEQ`, 734,953 iterations) waiting on a device register. **No ARMv6-only instruction appears** (zero REV, SXT/UXT, LDREX/STREX, CPS, SRS, RFE, SETEND, PKH, SSAT/USAT, SEL, the SIMD adds, UMAAL, WFI, CLREX); there are 8 MCR and 5 MRC (CP15 set-up). ## What MAME can and cannot decide here - It **can** find differences in ARMv4/v5 instruction results over a firmware boot, at rung 1 alongside arm946es-python. - It **cannot** test ARMv6K in this recipe: the frame exercised none. A longer run would need a trace filter (MAME's `noloop` does not fold the poll loop), and whether MAME's ARM1176 implements the v6 SIMD set correctly is itself unknown. - It has **no MPCore**: no SCU, no distributor, no second CPU, no VFP state symbols. - It **cannot judge timing**: 2,265,489 instructions in 12.8 ms at 412 MHz is 2.33 clocks per instruction, a model figure, not a measurement. The useful ARMv6K detector is a generated single-step corpus (validation.md rung 3), built from a closed box in emu-tools-gpl, not MAME's boot traces.