local dbg = manager.machine.debugger dbg.visible_cpu = manager.machine.devices[":maincpu"] dbg:command('trace T.trace,:maincpu,noloop,{logerror "T %X %X %X %X %d\\n",PC,LR,R1,MSR,totalcycles}') dbg:command("go") count = 0 notifier = emu.add_machine_frame_notifier(function() count = count + 1 if count == 1 then manager.machine.video:snapshot() manager.machine:exit() end end)