Morality is logical consistency: the only rule of morality is non-contradiction ("right"/"wrong"). An example of immorality is treating another differently than how one would expect to be treated in same circumstances under the assumption the two agents are equivalent (mental+physical properties) and there is therefore no logical reason to do this.