local dbg = manager.machine.debugger dbg.visible_cpu = manager.machine.devices[":mainpcb:soundcpu"] dbg:command('trace S.trace,:mainpcb:soundcpu,noloop,{logerror "S %X %X %X %d\\n",pc,af,sp,totalcycles}') dbg:command("go") count = 0 notifier = emu.add_machine_frame_notifier(function() count = count + 1 if count == 60 then manager.machine.video:snapshot() manager.machine:exit() end end)