Quote Originally Posted by Socal View Post
I'm getting an "Undefined symbol EPROM2" error when trying to compile this code. Should I just ignore it or is there another way of jumping out of the assembly code?

Main:
pin5 = 1 'Output on GP2/pin5
Pause msec
If pin2=0 then Frequp
If pin3=0 then Freqdown

Asm
btfss GPIO.1
goto EPROM2 ;Checks for Eeprom button
Endasm

Goto Main
Eprom2:
High LED
Write 0,msec.BYTE0 'Write current msec value into EEprom
Write 1,msec.BYTE1
Goto Main

You need to add an underscore before the label etc. when you use assembly.

Your line:
goto EPROM2 ;Checks for Eeprom button

needs to be:
goto _EPROM2 ;Checks for Eeprom button


Andy