local cpu=manager.machine.devices[":maincpu"]; local fr=0 local lf=io.open(os.getenv("POUT"),"w") emu.register_frame_done(function() fr=fr+1 if fr>=1360 and fr<=1520 and fr%4==0 then lf:write(fr," pc=",string.format("%x",cpu.state["PC"].value)," d7=",string.format("%x",cpu.state["D7"].value)," d3=",string.format("%x",cpu.state["D3"].value),"\n"); lf:flush() end end)