Line is tooooo loooooong !!!
Quoting from the PBP manual....
4.14. Line-extension Character
The maximum number of characters that may appear on one PBP line is 256. Longer statements may be extended to the next line using the line-extension character (_) at the end of each line to be continued.
Branch B0,[label0,label1,label2,_
label3,label4]
Your example is 352 characters so it never sees the closing bracket.
I dont think there is any difference in execution speed between a statement with say 5 variable and 5 statements with a single variable.
eg.
lcdout "hello"
lcdout "h"
lcdout "e"
lcdout "l"
lcdout "l"
lcdout "o"
generates the following extract from the assembler
LCDOUT?C 068h h
LCDOUT?C 065h e
LCDOUT?C 06Ch l
LCDOUT?C 06Ch l
LCDOUT?C 06Fh o
LCDOUT?C 068h h
LCDOUT?C 065h e
LCDOUT?C 06Ch l
LCDOUT?C 06Ch l
LCDOUT?C 06Fh o
Obviously in the above example it is a lot easier to enter "hello" than 5 separate lines. Using either the single statement or the 5 statements the code compiled to 123 bytes. Using both it was 138 bytes.
Using your code, I personally find the second "temporary fix" verison to be far more readable and it would be even easier with just "one chunk of data" per statement line.
That way you would also be able to add comments to each line to say what you are receiving and skipping so that when you come back to your code in a few months time you can instantly tell what you were thinking when you wrote it
Keith
www.diyha.co.uk
www.kat5.tv
Bookmarks