One can't get closer to the metal than this. A good starting resource is Programming from the Ground Up.