PIC16F877 HEX on a PIC18F452

Hello,

This question is rather “extra-mios”, and I appologize in advance, but I have a problem…

I have a compiled PIC16F877 hex file that I want to run on PIC18F452.

Is there an easy way of running this on these “easier to find in shops” chips?

I have tried using a disassembler but I end up with a mplab cant recompile…

Any suggestions,

Many thanks in advance,

Alex