#!/usr/bin/env python """Run a CPS-1 game headless in MAME 0.285 and log every MSM6295 access. python scripts/mame_oki_tap.py ffight # 40 emulated seconds python scripts/mame_oki_tap.py sf2 --seconds 20 python scripts/mame_oki_tap.py ffight --summary # only summarise the last log Runs scripts/mame_oki_tap.lua (taps on the sound Z80's $F002 and $F006) in reference/mame-run// (ignored) and writes oki-tap.log there: one line per access, ``