local log = io.open("frames.txt", "w") status_sub = emu.add_machine_frame_notifier(function() manager.machine:logerror("F\n") log:write(string.format("F %s\n", tostring(manager.machine.time))) log:flush() end) local snap_n = 0 snap_sub = emu.add_machine_frame_notifier(function() snap_n = snap_n + 1 if snap_n == 600 then manager.machine.video:snapshot() end end)