First Law: A robot may not injure a human being, or, through inaction, allow a human being to come to harm.At least they beat Robocop's prime directives.
Second Law: A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.
Third Law: A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.
Isaac Asimov and the Three Laws of Robotics