local dbg = manager.machine.debugger dbg.visible_cpu = manager.machine.devices[":ikbd:cpu"] dbg:command('trace T.trace,:ikbd:cpu,noloop,{logerror "K %X %X %X %X %X %d\\n",pc,a,b,x,s,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)