changed dataMemory so that all different loadModes are accepted
tested, it works
flag has to be generated by control