PIC 16F1503 - change the frequency of internal oscillator
If you are using the simulator, you must comment out those two tests for the oscillator running or being stable. Since you don't have any hardware running, the tests will always fail. They should be OK if you use a debugger like the PICkit 2/3 or ICD 3.