Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get scnjKL9S heaper
- -- std PB scnjKL9S heaper
- local tArg = {...}
- if tArg[1] == "exec" then
- _G.h = ("\0"):rep(tArg[2])
- elseif tArg[1] == "test" then
- _G.h = ("\0"):rep(tArg[2] or 0)
- local step = tArg[3] or 4
- while true do
- _G.h = _G.h..("\0"):rep(step)
- settings.set("heapSize",tostring(#_G.h))
- settings.save(".settings")
- term.setCursorPos(1,1)
- term.write(#_G.h.." ")
- if ((#_G.h-(tArg[2] or 0))/step) % 32 == 0 then
- sleep(0)
- end
- end
- else
- return print([[
- test [start] [step]
- exec <size>]])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement