TODO: const == stuff with memaddr