I don't know how primitive you want to get, but you might enjoy taking a look at the actual electronics used to create the various logic gates with diodes/transistors. From there you can learn what a flip-flop is and probably go from there to understanding things like accumulators and programming more basic microprocessors with assembly: http://en.wikipedia.org/wiki/Flip-fl...electronics%29