We could just base it off the accepted standardized morality and ethics guidelines, from the official internationally and intergalactically recognized authorities.
When I've first read Asimov 20~ years ago, I couldn't imagine I will see machines that speak and act like its robots and computers so quickly, with all the absurdities involved.