Re: Saving the text screen into strings???

Patrick Ulland via Coco <[email protected]> Fri, 1 May 2026 14:54:13 -0500
Newsgroups gmane.comp.hardware.tandy.coco
Message-ID <[email protected]>
>> if you are porting from ZX81 BASIC the original program might include 
>> a mystery line like 10 LET A$=”” where A$ is never referenced 
>> anyplace else in the program.
>>
>>
> I am really having a hard time visualizing this.
>
As I recall, ZX basic is largely unencumbered by error checking. A line 
is a 2 byte line number and then for speed, a 2 byte line length. The 
editor normally records the proper line length but if you lie about 
that, the first few bytes are interpreted literally (A$=””) and now the 
conditionals are satisfied, jump to end of line+1, unencumbered by the 
thought process. That is up to 64K. This interprets fine, and saving to 
tape works also. Listing to screen or printer, not so well.

See? It's all nice and comfy now we don't have to invent this stuff 
again, just reremember which use case this one is;-)

-ricku

-- 
Coco mailing list
[email protected]
http://listserv.adelphi.edu/cgi-bin/mailman/listinfo/coco