[Coco] How to generate BASIC line pointers ?

William Astle lost at l-w.ca
Wed Aug 28 10:46:45 EDT 2013


On 2013-08-28 08:32, Johann Klasek wrote:
> On Wed, Aug 28, 2013 at 04:19:01PM +0200, CoCoList at jensdiemer.de wrote:
>> Am 28.08.2013 16:12, schrieb Aaron Wolfe:
>>> I believe you will need to tokenize the text line to get its length in
>>> memory.
>>
>> Yes, I think so, too. But is it so simple: a Offset + length of tokenize
>> lines?
>> And what is the offset value? A fixed constant?
>
> Offset is the link address pointing to from the previus line or the startaddress
> of the BASIC text area (which has to be provided by some means).

For Color Basic on the COCO, the line pointers in a saved basic program 
are ignored because the program may not load to the same address it was 
saved from. Instead, after the program loads, it scans the program and 
recalculates all the pointers. As long as the pointer isn't zero, it 
probably doesn't matter much what it is in that case.





More information about the Coco mailing list