You may want to use a 16F877a instead of the 877, I'm not sure if you can bootload to the 877 or not.