Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
Long Lines — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
General Discussion
Long Lines
David Naffin
Posts:
10
2005-05-11 21:48
edited 2005-05-11 23:15
in
General Discussion
Is there any way to perform a line continuation? This would be handy for long lines such as branch commands with many states.
Comments
David Naffin
Posts:
10
2005-05-11 21:52
edited 2005-05-11 21:52
I guess I should have mentioned that this is in regards to SXB.
Jon Williams
Posts:
6,491
2005-05-11 23:15
edited 2005-05-11 23:15
If I remember correctly, lines are limited to 240 characters.
·
Still, it's tough when you have a lot of targets.
·
What I've done in BASIC Stamp programs is split the BRANCH lines like this:
·
brTarget = target
·
BRANCH brTarget, Task1, Task2, Task3
·
brTarget = brTarget - 3
·
BRANCH brTarget, Task4, Task5, Task6
The first line is used to preserve the value of the original target -- just in case it's needed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX
·
USA
Sign In
or
Register
to comment.
Comments
· brTarget = target
· BRANCH brTarget, Task1, Task2, Task3
· brTarget = brTarget - 3
· BRANCH brTarget, Task4, Task5, Task6
The first line is used to preserve the value of the original target -- just in case it's needed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA