By the way, mycode is not needed. Everything can be done with newmem: