local dbg = manager.machine.debugger dbg.visible_cpu = manager.machine.devices[":ue10"] dbg:command('trace S.trace,:ue10,noloop,{logerror "S %X %X %X %X %X %X %d\\n",pc,a,x,y,p,sp,totalcycles}') dbg:command('wpset 9000,10,w,1,{logerror "VIC %X %X %d\\n",wpaddr,wpdata,totalcycles; g}') dbg:command('wpset 9110,10,w,1,{logerror "VIA1 %X %X %d\\n",wpaddr,wpdata,totalcycles; g}') dbg:command('wpset 9120,10,w,1,{logerror "VIA2 %X %X %d\\n",wpaddr,wpdata,totalcycles; g}') dbg:command("go") count = 0 notifier = emu.add_machine_frame_notifier(function() count = count + 1 if count == 120 then manager.machine.video:snapshot() manager.machine:exit() end end)