SX processors have been used to replace PIC 16C57's and 54's useing the .hex file from MPLab (renamed to .shx and programmed with the SX-Key or SXDev). You will need to play with the oscillator
settings and you should change the capacitor values and add a carbon compisition resistor as per the clock requirements listed in the SX datasheets...