local dbg = manager.machine.debugger dbg.visible_cpu = manager.machine.devices[":iec8:c1541:ucd5"] dbg:command('trace C.trace,:iec8:c1541:ucd5,noloop,{logerror "C %X %X %X %X %X %X %d\\n",pc,a,x,y,p,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)