rename and globalize: text -> src, i -> pc
use TypedArray
localize: nest
rename and globalize: curmem -> reg
use infinite loop instead of for
fix around stdin