The 16F84 was replaced by the 16F628 last century, there was a migration document at MicroChip - but it's so long ago it doesn't appear to be there any more?. Essentially it's a drop-in replacement - just assemble the source code for the new processor - make sure you set the fuses correctly though.
You do need to add a couple of lines to turn OFF the comparators (see my tutorials which all include these lines), and I would check the GPR start address (again my tutorials include the correct value for the 628).