Its kind of a bummer that Asimov's Three Laws of Robotics do not work for actual AI morality. But the failure shows why rule-based approaches won't work.
(and Asimov wanted to write stories about how robots got around the Laws, so their failure was a good thing for his plots)