J Jaguarjoe Senior Member Jan 9, 2009 #1 Why do I get a syntax error on my "if w1>65400 then goto max" line? adc: readadc10 1,w0 w0=w0*64 w1=65472-w0 if w1>65400 then goto max return max: pins=11111111 pinsc=00000011 return Thanks, Joe
Why do I get a syntax error on my "if w1>65400 then goto max" line? adc: readadc10 1,w0 w0=w0*64 w1=65472-w0 if w1>65400 then goto max return max: pins=11111111 pinsc=00000011 return Thanks, Joe
G gbrusseau Senior Member Jan 9, 2009 #2 The word "MAX" is a reserved label. Maybe "MOST" would be a good substitute Last edited: Jan 9, 2009
J Jaguarjoe Senior Member Jan 9, 2009 #3 I should have known that MAX is a math operator! Thank you, Joe