Principles concerning the distinction between right and wrong or good and bad behaviour, i.e.: a particular system of values and principles of conduct; or, the extent to which an action is right or wrong.

From Wikipedia:

Morality (from the Latin moralitas "manner, character, proper behavior") is the differentiation of intentions, decisions, and actions between those that are "good" (or right) and those that are "bad" (or wrong).

The philosophy of morality is ethics. A moral code is a system of morality (according to a particular philosophy, religion, culture, etc.) and a moral is any one practice or teaching within a moral code. Morality may also be specifically synonymous with "goodness" or "rightness." Immorality is the active opposition to morality (i.e. opposition to that which is good or right), while amorality is variously defined as an unawareness of, indifference toward, or disbelief in any set of moral standards or principles. An example of a moral code is the Golden Rule which states that, "One should treat others as one would like others to treat oneself."

A SciFi-contextual question of morality may involve, as examples, Star Trek's "Prime Directive", or Doctor Who's Time Lords' policy of non-interference.