Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Error : 256 Line : 10 Single expected [ 301]

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
uga237

Bascom Member



Joined: 15 May 2012
Posts: 32

blank.gif
PostPosted: Thu Feb 09, 2017 5:22 pm    Post subject: Error : 256 Line : 10 Single expected [ 301] Reply with quote

Const Status VS Local Status.0

if use Status(not Status.0) - no error
----------------------------------------------------

Config Submode = New

Const Status = 08

Sub Sub1()
Local Status As Byte

Do
!nop
Loop Until Status.0 = 0

End Sub

Call Sub1

Do
Loop
--------------------------------------

Error : 256 Line : 10 Single expected [ 301] , in File : D:\Atmel\PDA\BASCOM\PDA\noname5.bas

Error?
Single??

(BASCOM-AVR version : 2.0.7.9 , Latest : 2.0.7.8 )
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1803

blank.gif
PostPosted: Thu Feb 09, 2017 7:25 pm    Post subject: Re: Error : 256 Line : 10 Single expected [ 301] Reply with quote

uga237 wrote:
Error?
Single??
If I compile this rather questionable code, I get no error at all.
Don't know, what you're doing.

Btw., what sense would it make to use a constant as shown for a loop, and always get a not changeable behavior?
Back to top
View user's profile
uga237

Bascom Member



Joined: 15 May 2012
Posts: 32

blank.gif
PostPosted: Fri Feb 10, 2017 5:45 am    Post subject: Re: Error : 256 Line : 10 Single expected [ 301] Reply with quote

MWS wrote:
uga237 wrote:
Error?
Single??
If I compile this rather questionable code, I get no error at all.
Don't know, what you're doing.

Btw., what sense would it make to use a constant as shown for a loop, and always get a not changeable behavior?



Essentially You reported no compilation errors, without specifying the compiler version.
The rest - not on the merits.

Behold the root.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum