local f=0 emu.addEventCallback(function() f=f+1 if f==60 then emu.stop(7) end end, emu.eventType.endFrame)