Thanks Richard!
Didn't think about the lack of auto context save on the 16F parts, thanks for picking that up!

Yes, the 12F1822 can run at up to 32MHz from its internal oscillator and it has the auto context save - it would be a good choice for this, as said before.

CuriousOne,
Please try Richards edited version on your 12F1822 and see if it works.

/Henrik.