count = 0 notifier = emu.add_machine_frame_notifier(function() count = count + 1 manager.machine:logerror(string.format("FRAME %d\n", count)) if count == 1100 then manager.machine.video:snapshot() manager.machine:exit() end end)