Length of a BASIC line

From: Baltissen, GJPAA (Ruud) <"Baltissen,>
Date: Wed, 3 Nov 2021 13:15:34 +0000
Message-ID: <AM6PR10MB2360A063E1C2BA0F08D9CEE5E18C9_at_AM6PR10MB2360.EURPRD10.PROD.OUTLOOK.COM>
Hallo allemaal,


More interesting finds.

Now I found out that the C128 can handle lines longer than 80 chars, I had to know how long they could be. That appears to be 160 characters. On it self not interesting but I started with line number 1. I created another line by inserting four zeros and thus creating line 1000. And now I got this error: String too long. I had to delete four characters from the line before the C128 accepted it. What I find interesting is that I thought that the length of the encoded line would be subject to a limitation, not the length on the screen. In fact in RAM line 10000 is shorter than line 1.

I already knew that the C64 accepted only 80 characters but I wanted to see how it handled enlarging the line number. Surprise: I first had to delete characters in the line before I could add zeros.

Another confusing thing are the used error messages. I was used to the "syntax error" used by the C64 by now. The first time I saw this "string too long error" I really thought that one of my PRINT statements was too long.

I also test thing for the CBM-II, same thing and therefore I assume that it is the same for the CBM.


With kind regards / met vriendelijke groet, Ruud Baltissen

http://www.baltissen.org<http://www.baltissen.org/>






De informatie in dit e-mailbericht is vertrouwelijk en uitsluitend bestemd voor de
geadresseerde. Wanneer u dit bericht per abuis ontvangt, verzoeken wij u contact op te
nemen met de afzender per kerende e-mail. Verder verzoeken wij u in dat geval dit
e-mailbericht te vernietigen en de inhoud ervan aan niemand openbaar te maken.
Wij aanvaarden geen aansprakelijkheid voor onjuiste, onvolledige dan wel ontijdige
overbrenging van de inhoud van een verzonden e-mailbericht, noch voor daarbij
overgebrachte virussen.

APG Groep N.V. is gevestigd te Heerlen en is ingeschreven in het
handelsregister van de Kamer van Koophandel Limburg onder nummer 14099617


The information contained in this e-mail is confidential and may be privileged.
It may be read, copied and used only by the intended recipient.
If you have received it in error, please contact the sender immediately by
return e-mail; please delete in this case the e-mail and do not disclose its
contents to any person. We don't accept liability for any errors, omissions,
delays of receipt or viruses in the contents of this message which arise as a
result of e-mail transmission.

APG Groep N.V. is registered in the trade register of the Chamber
of Commerce Limburg, The Netherlands, registration number: 14099617
Received on 2021-11-03 15:00:03

Archive generated by hypermail 2.3.0.