Quoted from slochar:It's not going to explain the software-hardware link in fine grained detail though. You can look at the patent for Bally's Bow and Arrow, they actually put the source code there although it's not very well commented. There's source code for various other games floating around the net as well if you want to peruse it to get some idea of how it's done
Mission Pinball Framework would also be helpful in learning code level stuff.
http://missionpinball.org/