bcd,

If you're going to start with that bootloader for the 16F877?
There are some significant differences when writing to flash memory on the 16F87/88's.

The 877 allows you to write 1 word at a time. And when you write it, the chip automatically erases the word before writing the new data. This is the main reason why 99% of the free bootloaders use the 16F877. (it's easy)

The 16F87/88's require that you erase memory in blocks of 32-words first, then write the new data in blocks of 4-words. (more difficult)

It's still very doable.
Just thought it might help get you on the right track.
<br>