News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_mr_lou

BASIC: Line too long

Started by mr_lou, 12:05, 21 June 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mr_lou

So I'm playing around with PRINT, just printing a bunch of control codes for various stuff, like control codes instead of SYMBOL commands.

There's room for a certain amount of characters on a line, but I'm experiencing a "Line too long" error sometimes despite of this. Can anyone explain what a plain PRINT line can give a "Line too long" error?

Bryce

Are you possibly using ? as a shortcut instead of typing the whole word PRINT?

Bryce.

freemac

#2
A missing special char "end of file of BASIC script" can give this error. Or else a basic line... too long (line of basic code, not line in screen :p)

I got this problem last week with a PRINT that contains a lot of ";chr$(224);" inside, so I solved that using c/c (in ASCII with notepad++) :

https://github.com/renaudhelias/RubikCubePaletteCPC/blob/master/JDVPA%235_test/COMBAT2.BAS
load "combat2.bas
goto 821

notepad++ has a hex to binary converter, and Excel has a dec to hex converter funtion : DECHEX()
Perhaps I missed something, chr$(n) seems not using same value as binary char in ASCII...

Sykobee (Briggsy)

IIRC I used to print chr$(whatever) and then in the basic editor use the copy functionality to inline it into the program line.


Of course these days that doesn't get your code easily onto github :p

Powered by SMFPacks Menu Editor Mod