[Coco] Loading ASCII BASIC over serial?

Luis Antoniosi (CoCoDemus) retrocanada76 at gmail.com
Wed Oct 2 14:11:30 EDT 2013


an ASCII basic file will appear as: PROGRAM/BAS while a tokenized:
PROGRAM.BAS

Also the coco cannot handle newlines, it only contains CRs (like a Mac file)



On Wed, Oct 2, 2013 at 12:15 PM, Aaron Wolfe <aawolfe at gmail.com> wrote:

> As I just mentioned in our passing emails, I think its the "ascii
> flag" attribute that DECB needs to be correct, rather than the .txt vs
> .bas extension.  The extension is effectively controlling whether
> ascii flag is set via the file extension settings in config.xml.
>
> I will work towards making things easier.  They are very manual right now.
>
> On Wed, Oct 2, 2013 at 12:12 PM, Chris Osborn <fozztexx at fozztexx.com>
> wrote:
> > Aha, got it to load! It *was* expecting tokenized if I name it .BAS.
> With it .TXT I was able to do LOAD"COCO/TXT" and it parsed it into real
> BASIC.
> >
> > On Oct 2, 2013, at 8:57 AM, Chris Osborn wrote:
> >
> >> I tried naming it as .BAS but it loaded as garbage. It sort of looks
> like it's expecting it to be the tokenized form of a BASIC program. Also,
> I'm using HDB-DOS so that I could use Extended BASIC. Is there a way to
> tell BASIC to read in the text file as commands, sort of like the EXEC
> command on the Apple II?
> >>
> >> It still seems to me you could examine the contents of the file and
> look at existing extension and the requested CoCo extension to make a
> pretty good guess on the file type. And even throw in a call to file and
> get it to return the mime-type.
> >>
> >> On Oct 2, 2013, at 8:45 AM, Aaron Wolfe wrote:
> >>
> >>> I don't know of any way to get this right automatically.  I can add
> >>> arguments to the add command that lets you override the default
> >>> attributes or add a command to change attributes, but I think it will
> >>> have to be a manual process.
> >>>
> >>> Another alternative would be to follow DECB file naming conventions
> >>> (BASIC programs would end in .BAS).  This would make things work with
> >>> the defaults.
> >>>
> >>>
> >>> On Wed, Oct 2, 2013 at 11:34 AM, Chris Osborn <fozztexx at fozztexx.com>
> wrote:
> >>>> Ok well I renamed the file from TRS80-CoCo.txt to CoCo.txt and it was
> able to put it on the disk. But not sure how to get it to load as a basic
> program.
> >>>>
> >>>> On Oct 2, 2013, at 7:35 AM, Aaron Wolfe wrote:
> >>>>
> >>>>> That is reasonable and I will add the ability to specify an alternate
> >>>>> destination name in a future version.
> >>>>>
> >>>>> In the meantime, I am concerned that you are doing things correctly
> >>>>> and it isn't working.  A bug report would be very helpful.
> >>>>>
> >>>>>
> >>>>> On Wed, Oct 2, 2013 at 10:07 AM, Chris Osborn <fozztexx at fozztexx.com>
> wrote:
> >>>>>> I really don't want to rename the original file, it's part of a git
> repo. There should be a way to let me specify the name that it will use on
> the disk.
> >>>>>>
> >>>>>> On Oct 1, 2013, at 9:55 PM, Aaron Wolfe wrote:
> >>>>>>
> >>>>>>> DW just uses the file name of the source, so you can rename it
> there but
> >>>>>>> not as part of the add command.  So long as its a valid DECB file
> name it
> >>>>>>> should be OK.
> >>>>>>>
> >>>>>>> Its been a long time since I worked on those routines, but I think
> you are
> >>>>>>> doing things correctly.
> >>>>>>> Could you send a bug report from the help menu after trying the
> commands
> >>>>>>> you are using? It would help me see what's happening.
> >>>>>>> On Oct 2, 2013 12:13 AM, "Chris Osborn" <fozztexx at fozztexx.com>
> wrote:
> >>>>>>>
> >>>>>>>> Perhaps, but I can't seem to tell DW to name it that when it puts
> it on
> >>>>>>>> the disk.
> >>>>>>>>
> >>>>>>>> On Oct 1, 2013, at 9:10 PM, Wayne Campbell wrote:
> >>>>>>>>
> >>>>>>>>> Is it possible that the filename needs to be prog.bas instead of
> >>>>>>>> prog.txt?
> >>>>>>>>>
> >>>>>>>>> Wayne
> >>>>>>>>> On Oct 2, 2013 12:01 AM, "Chris Osborn" <fozztexx at fozztexx.com>
> wrote:
> >>>>>>>>>
> >>>>>>>>>> On Oct 1, 2013, at 8:14 PM, Aaron Wolfe wrote:
> >>>>>>>>>>
> >>>>>>>>>>> A blank disk needs to be formatted.  Use dw disk dos format or
> DSKINI
> >>>>>>>>>>> on the CoCo before trying to add content.
> >>>>>>>>>>
> >>>>>>>>>> Ok so I got it formatted, but now when I try to copy the file
> onto the
> >>>>>>>>>> disk it tells me Invalid filename. I try to add another
> argument after
> >>>>>>>> the
> >>>>>>>>>> file path to give it a name and I get Syntax error.
> >>>>>>>>>>
> >>>>>>>>>> --
> >>>>>>>>>> Coco mailing list
> >>>>>>>>>> Coco at maltedmedia.com
> >>>>>>>>>> http://five.pairlist.net/mailman/listinfo/coco
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> Coco mailing list
> >>>>>>>>> Coco at maltedmedia.com
> >>>>>>>>> http://five.pairlist.net/mailman/listinfo/coco
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Coco mailing list
> >>>>>>>> Coco at maltedmedia.com
> >>>>>>>> http://five.pairlist.net/mailman/listinfo/coco
> >>>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Coco mailing list
> >>>>>>> Coco at maltedmedia.com
> >>>>>>> http://five.pairlist.net/mailman/listinfo/coco
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Coco mailing list
> >>>>>> Coco at maltedmedia.com
> >>>>>> http://five.pairlist.net/mailman/listinfo/coco
> >>>>>
> >>>>> --
> >>>>> Coco mailing list
> >>>>> Coco at maltedmedia.com
> >>>>> http://five.pairlist.net/mailman/listinfo/coco
> >>>>
> >>>>
> >>>> --
> >>>> Coco mailing list
> >>>> Coco at maltedmedia.com
> >>>> http://five.pairlist.net/mailman/listinfo/coco
> >>>
> >>> --
> >>> Coco mailing list
> >>> Coco at maltedmedia.com
> >>> http://five.pairlist.net/mailman/listinfo/coco
> >>
> >>
> >> --
> >> Coco mailing list
> >> Coco at maltedmedia.com
> >> http://five.pairlist.net/mailman/listinfo/coco
> >
> >
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > http://five.pairlist.net/mailman/listinfo/coco
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>



-- 
Long live the CoCo



More information about the Coco mailing list