Look at Mees, The Theory of the Photographic Process, it's excellent and it's free! If you feel like spending money and want something more modern, get Haist's books on photographic processing.