Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site genrad.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!decvax!genrad!al
From: al@genrad.UUCP (Al Gudaitis)
Newsgroups: net.micro
Subject: Re: [Chris Jarocha-Ernst : How can I write BASIC lines >80 chars on C64?]
Message-ID: <3919@genrad.UUCP>
Date: Sat, 10-Mar-84 13:48:42 EST
Article-I.D.: genrad.3919
Posted: Sat Mar 10 13:48:42 1984
Date-Received: Tue, 13-Mar-84 19:42:48 EST
References: <17294@sri-arpa.UUCP>
Organization: GenRad, Bolton, Mass.
Lines: 21

Actually, there is no reason why your ON X GOTO 1,2,3 type statement cannot be
split up into several lines.  As long as the argument (X in this case) is in
the range of 0 to 127, you won't get a syntax error and if there isn't a line
number to match the argument, then execution simply continues on the next line.
So:

100 ON X GOTO 1001,1002,1003,1004,1005,1006,1007,1008,1009

can be converted into:

100 ON X GOTO 1001,1002,1003,1004,1005
101 ON X-5 GOTO 1006,1007,1008,1009

Just make sure that the highest value computed GOTO's come last so that X-5,
X-10 or whatever don't give you negative numbers.  Of course, the other method
is to use some IF statements to send the program to the appropriate range of
computed GOTO's.  The input buffer length is what limits the C64 to
approximately 80 character lengths.  BASIC, itself, could handle NEARLY 256
character lines if you tokenized them yourself and poked them into program
space with the correct next-line pointers.  But that is probably more difficult
than doing what I suggested above.