[Coco] How to generate BASIC line pointers ?

Aaron Wolfe aawolfe at gmail.com
Wed Aug 28 10:12:04 EDT 2013


On Aug 28, 2013 9:49 AM, <CoCoList at jensdiemer.de> wrote:
>
>
> I'm work on a new converter for converting Dragon WAVE files into ASCII
files.
> Sourcecode here:
>
>         https://github.com/jedie/PyDragon32/tree/master/PyDC
>
> Current implementation only convert WAV2BAS. The most code for BAS2WAV
exist, but it's not usable, yet.
>
> Later there will be exist the possibility to convert between:
>         * WAV
>         * BAS
>         * CAS / ASC
>
> One question is, how to build the line pointers? It's named
"PTR_NEXT_LINE" here:
>         http://dragon32.info/info/basicfmt.html
>
> description:
> """
> PTR_NEXT_LINE is the memory address of the next line (should be the byte
>   after the $00 delimiter.)
> """
>
> Anyone knows how to build the line pointer if the BASIC code only exist
as plaintext ASCII ?
>
>

I believe you will need to tokenize the text line to get its length in
memory.

>
> Next question are the "machine code starting address" and "machine code
loading address" in the filename block, see:
>
>         http://www.cs.unc.edu/~yakowenk/coco/text/tapeformat.html
>
>
>
> --
>
> Mfg.
>
> Jens Diemer
>
>
> ----
> http://www.jensdiemer.de
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco



More information about the Coco mailing list