# MAME as a detector for the board (tier 5) The recipe that ran is in vr4300-python (`scripts/mame_trace.py`, `docs/mame-oracle.md`): MAME 0.285's `n64` driver, run headless with a Lua autoboot script, tracing the VR4300 from the cartridge's entry point (after Nintendo's boot code, which is never traced into a file we read). It ran tonight on krom's CPUADD (1,374,700 instructions, about 30 s) and RSPCPUADD. What it means for the board: - MAME's VR4300 charges **one cycle per instruction** (MEASURED from its trace), so nothing about timing, interrupt latency or DMA duration can be learned from it. - MAME reached the entry point 58,189,543 of its cycles after reset (about 0.62 s at 93.75 MHz): its boot (PIF, IPL3) is a fixed sequence of its own; the hardware's boot time is "about 500 ms" for a Nintendo IPL3 (n64brew: Initial Program Load), unattributed. - The **RSP trace did not work** as expected (20 instructions in 4 emulated seconds, PC parked at 0x18): unresolved; do not use MAME as an RSP detector until it is. - MAME's register state at the entry point is a detector for option B of the boot (pif-cic-boot.md): what IPL3 leaves in registers. - For pictures, MAME can save snapshots (`-snapshot_directory`, `snapshot` Lua call) of a test ROM's screen: not tried tonight (one MAME process at a time, short runs only). Romsets: `n64.zip` (and `n64pal.zip`) from `MAME_ROMPATH`, read in place; cartridges from `NO_INTRO_DIR` or `reference/`. Never a machine path in a repository.