I am a neophyte and don't understand why my code is not working. The statement: on interrupt goto wait is said to be bad syntax but I don't believe it, something else is wrong. My program:
REM device = 12F675
CMCON = 7 ' SETS DIGITAL MODE
ANSEL = 0 ' GPIO.0 TO GPIO.3 SET AS DIGITAL
OPTION_REG = 0 ' WEAK PULLUPS ENABLED
TRISIO = %00000100 ' GPIO.2 SET AS INPUT
IOC = %00000100 ' INTERRUPT ENABLED ON GPIO.2
INTCON = %10010000 ' INTERRUPT ENABLED
N VAR BYTE ' VARIABLE N DEFINED
' ************************************************** ***********
START:
ON INTERRUPT GOTO WAIT
HIGH GPIO.0
FOR N=1 TO 13
NAP 6
NEXT N
LOW GPIO.0

WAIT:
DISABLE INTERRUPT
SLEEP
ON INTERRUPT GOTO START
ENABLE INTERRUPT 'do i need to clear the interrupt bit first?
END