Code:
start:
'
'
'

LED1=0 '

main:
GoSub getkey

getkey:
kp1=0 'Clear kp1
after Main, should have a goto start or something like that

But i didn't get any error within MicroCode Studio using MPASM but get error with PM about WDTCON and LCDCON... in the PM M16F91X.inc file it miss those two lines
Code:
WDTCON		    equ     105h
LCDCON		    equ     107h
but shouldn't be the cause IMO