local frames = 0 emu.addEventCallback(function() frames = frames + 1; if frames == 120 then emu.stop(7) end end, emu.eventType.endFrame)