Hitech do a PIC16 compiler which you can use in "lite" mode (i.e. absolutely no optimisation at all) indefinitely - for small bits of code like this it works just fine, and it integrates nicely with MPLAB if you want the full IDE/simulator experience.
If you want to use C, You can download BoostC. I use MatrixMultimedia's Flowcode, and it creates a C file that compiles using BoostC. and the code I see in your first post looks like code you see from FlowCode.