local dbg = manager.machine.debugger dbg.visible_cpu = manager.machine.devices[":soundcpu"] dbg:command('wpset f4,1,w,1,{logerror "F4 %X %d\\n",wpdata,totalcycles; g}') dbg:command("go") local frames = 0 snap_sub = emu.add_machine_frame_notifier(function() frames = frames + 1 if frames == 7211 then manager.machine.video:snapshot() manager.machine:exit() end end)