Memory.setEnable for memory control