To carry over a long line of code ... ?

edmunds

Senior Member
#1
Dear all,

Lately, I have come across code snippets that use and underscore to splint a long line of code and continue in the next row.

Code:
hi2cout 0, (0,0,0,0,0,0,0,0_
                 0,0,0,0,0,0,0,0)
Is this a PE only feature or is this somehow available in macAxePad as well?


Thank you for your time,

Edmunds
 

tmfkam

Senior Member
#2
This is a line from a serial 'receiver' for a VFD display:

Code:
			serin [800], RxPin, BaudRate, @bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc
The code isn't mine as such but a modified version from Ron Hackett's book, PicAxe for the evil genius...

It does compile in MacAxePad.
You may be missing the comma before the underscore?
 

edmunds

Senior Member
#3
This is a line from a serial 'receiver' for a VFD display:

Code:
			serin [800], RxPin, BaudRate, @bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc,_
													@bptrinc,@bptrinc,@bptrinc,@bptrinc,@bptrinc
The code isn't mine as such but a modified version from Ron Hackett's book, PicAxe for the evil genius...

It does compile in MacAxePad.
You may be missing the comma before the underscore?
It does, indeed, compile. Will look into it again.

Edmunds
 
Top