Classic Sci-Fi: Isaac Asimov did a series of short stories in the 1940s and 1950s that were compiled under the title "I, Robot."
Asimov posited the following three laws that would need to be hard-wired into all robots:
You can order various anthologies from Amazon.
These stories were synthesized in 2004 into an outstanding movie by the same title. This is a link to a site where, if you can deal with a few popups, you can stream the movie in 720p (for free).
OH, ok. Got it. Thanks.