implement condition memsw >= memory