Even ancient egyptians had a objective moral code
http://en.wikipedia.org/wiki/Maat#42_Ne ... _of_Ani.29
42 confessions in the book of the dead
I have not committed sin.
I have not committed robbery with violence.
I have not stolen.
I have not slain men and women.
I have not stolen grain.
I have not purloined offerings.
I have not stolen the property of the god.
I have not uttered lies.
I have not carried away food.
I have not uttered curses.
I have not committed adultery, I have not lain with men.
I have made none to weep.
I have not eaten the heart [i.e I have not grieved uselessly, or felt remorse].
I have not attacked any man.
I am not a man of deceit.
I have not stolen cultivated land.
I have not been an eavesdropper.
I have slandered [no man].
I have not been angry without just cause.
I have not debauched the wife of any man.
I have not debauched the wife of [any] man. (repeats the previous affirmation but addressed to a different god)
I have not polluted myself.
I have terrorised none.
I have not transgressed [the Law].
I have not been wroth.
I have not shut my ears to the words of truth.
I have not blasphemed.
I am not a man of violence.
I am not a stirrer up of strife (or a disturber of the peace).
I have not acted (or judged) with undue haste.
I have not pried into matters.
I have not multiplied my words in speaking.
I have wronged none, I have done no evil.
I have not worked witchcraft against the King (or blasphemed against the King).
I have never stopped [the flow of] water.
I have never raised my voice (spoken arrogantly, or in anger).
I have not cursed (or blasphemed) God.
I have not acted with evil rage
I have not stolen the bread of the gods.
I have not carried away the khenfu cakes from the Spirits of the dead.
I have not snatched away the bread of the child, nor treated with contempt the god of my city.
I have not slain the cattle belonging to the god.