local dbg = manager.machine.debugger dbg.visible_cpu = manager.machine.devices[":subcpu"] dbg:command("go") count = 0 notifier = emu.add_machine_frame_notifier(function() count = count + 1 if count == 1500 then dbg:command('trace S.trace,:subcpu,noloop,{logerror "S %X %X %X %X %d\\n",pc,sr,d0,a7,totalcycles}') dbg:command('wpset 0,1000000,w,1,{logerror "W %X %X %d\\n",wpaddr,wpdata,totalcycles; g}') end if count == 1502 then manager.machine.video:snapshot() manager.machine:exit() end end)