Almost forty years ago I started thinking about how to embed Asimov's Three Laws into an operating system at the CPU level. I was inspired by Warren McCulloch's treatise on neural networks. I conceived a solution I called Integrated Morality Logic ("IML") and got as far as defining a few functional blocks that I thought could be instantiated in TTL chips, which I referred to as "Commandments".
My colleagues thought I was joking and I got zero support, so the project was abandoned. But it stayed in my mind as one of the most challenging and important problems in cybernetics, and remains so as Mats points out.