View Full Version : Asm...Endasm
Socal
- 18th April 2007, 02:50
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
Andy Wood
- 18th April 2007, 03:53
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
Socal
- 18th April 2007, 04:33
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
Yeah, that fixed it, thanks!
Andy Wood
- 18th April 2007, 05:27
Yeah, that fixed it, thanks!
Excellent! I have been caught by that one before!
Andy
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.