Hey, you got attachments!!

The
Code:
movlw 7

   movwf CMCON
is assembly. if you are going to write it that way you need to let the program know .
Code:
ASM
movlw 7

   movwf CMCON
ENDASM