# The MAME recipe (run 2026-11-26, MAME 0.285) MAME is a closed box: run, never read. **Its Virtual Boy driver `src/mame/nintendo/vboy.cpp` is LGPL-2.1+** (Angelo Salese, Miodrag Milanovic; its `license:` line read 2026-11-26), unlike most of MAME's PC Engine and PC-FX files; the devices it uses carry BSD-3-Clause lines (`cpu/v810/*`, `bus/vboy/*` (Vas Crabb), `shared/vboysound.*` (R. Belmont)). The driver holds the VIP, so the VIP is LGPL in MAME: closed under the family's rules whatever tonight's brief said. Tier 5, driver status **preliminary**, save states unsupported. ## Devices (`mame -listdevices vboy`) `maincpu` NEC V810 @ 20.00 MHz; `3dleft`, `3dright` screens @ 10.00 MHz; `vbsnd` "Virtual Boy Audio" @ 5.00 MHz; `cartslot`; timers `timer_main`, `timer_pad`, `scantimer_l`. No firmware set (`vboy.zip` does not exist and is not needed). ## Command ```sh python -I scripts/mame_run.py \ --cart "$NO_INTRO_DIR/Nintendo - Virtual Boy/Mario's Tennis (Japan, USA) (En).zip" \ --frames 600 --snap --tap vip-io=0005F800-0005F87F --tap vsu=01000000-010007FF \ --tap vip-fb-left0=00000000-00005FFF --tap world-attr=0003D800-0003DBFF # 2 s wall ``` It passes `-video none -sound none -nothrottle -noreadconfig -skip_gameinfo -snapshot_directory tests/mame_runs/snap -autoboot_script run.lua`; the Lua installs write taps on the CPU's `program` space (held in a global table so they are not collected), counts writes per range, and at frame N prints the counts and the emulated time, saves a snapshot and exits. MAME loads the cartridge from the No-Intro zip. For an instruction trace, use `../v810-python/scripts/mame_trace.py --machine vboy`. ## Observed - At 600 frames (11.9909 emulated seconds; 19.985 ms per frame) both eyes show the precaution screen, side by side in one 768 x 224 snapshot. - Write counts as in validation.md. The left frame buffer 0 range took exactly 24,576 writes: the size of the buffer in bytes, so the CPU cleared it with byte or halfword stores counted per byte lane (MAME's tap granularity is not documented here: treat the count as "the whole buffer once"). - MAME ran 600 frames in 2 s of wall time (6x real time) with drawing in its own model. ## Output `tests/mame_runs/` (git-ignored): `snap/vboy/0000.png`, `run.lua`, `cfg/`, `nvram/`. Snapshots are game output and stay out of the repository.