[Coco] Loading ASCII BASIC over serial?

Aaron Wolfe aawolfe at gmail.com
Wed Oct 2 11:45:48 EDT 2013


Ah.. yes "TRS80-CoCo.txt" is not a valid DECB filename, so that makes sense.

Now we are getting into some of the complexities I mentioned when it
was suggested to somehow map a directory on the server to a disk on
the coco..

DW attempts to set the attributes correctly for each file added to a
DECB disk.  However, there is no way to be sure since DECB attributes
do not necessarily equate to anything measurable in a source file.

You can configure DriveWire's behavior in it's configuration file, by
default config.xml.

If you edit it with a text editor, you will find the following (likely
at the end of the file):

<DECBExtensionMapping ascii="false" category="advanced,disk"
extension="BAS" filetype="0" type="decbextmap"/>
<DECBExtensionMapping ascii="false" category="advanced,disk"
extension="DAT" filetype="1" type="decbextmap"/>
<DECBExtensionMapping ascii="false" category="advanced,disk"
extension="BIN" filetype="2" type="decbextmap"/>
<DECBExtensionMapping ascii="true" category="advanced,disk"
extension="TXT" filetype="3" type="decbextmap"/>
<DECBExtensionMapping ascii="true" category="advanced,disk"
extension="ASC" filetype="3" type="decbextmap"/>

These statements determine how DW sets attributes when files are imported.

The default is to assign .txt files a file type of 3 and to set the
ascii flag true.
I believe what you would want in this case is a file type of 0 instead.

Here's the rub... if you change this, files that are actually text and
named something.txt will then be incorrectly set upon import.

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



More information about the Coco mailing list