[torontocbm] Re: 1581 Support

  • From: "Chiron Bramberger" <dmarc-noreply@xxxxxxxxxxxxx> ("chironbramberger")
  • To: torontocbm@xxxxxxxxxxxxx
  • Date: Thu, 30 Dec 2021 20:56:34 -0500

Thanks for the feedback! 

I tried to explain it in the docs, but just in case I didn’t do a good job 
explaining it, it only supported a limited amount of the partition 
functionality of the 1581. 

The 1581 doesn’t support folders or directories. So the mkdir and rmdir 
commands aren’t supported. 

This is because “making a directory” is way different when compared to 
carefully creating a 1581 partition and then formatting it. This should only be 
done when the disk is first formatted anyway. 

I haven’t updated the format to handle creating and formatting partitions. I 
think for version one this isn’t critical so I’m leaving it for a future update 
or perhaps a stand-alone separate program for doing this. Since there are 
already programs that exist to do this I didn’t think it was a high priority. 

Instead, if a 1581 disk has been formatted, and on that disk a partition or 
partitions have been created and formatted, then you can move into the first 
partition (assuming device 8) by:

Doing this:
d08a: 

Or this:
cd d08a:

Or these two commands: 
cd d08:
part a

You can list partitions with the command lp (for List Partitions). This will 
show the drive letters and the partition names. 

If you want to return to the root partition:

Do this:
part root 

You can’t enter a partition and then a sub partition of that partition using 
the built-in commands. Although you could issue a custom dos command to do it 
using the “dos” command. 

I support it this way to keep it consistent with the SD2IEC and dual drive 
devices as much as possible. But the 1581 is so damn weird about partitions 
it’s hard to figure out how to support it and keep it consistent with 
everything else that has been created. I don’t think treating 1581 partitions 
like folders makes sense. I wish it did. I would have preferred that. 

So for example this is how you would copy files from one device to a partition 
on the 1581.

Assume SD2IEC as device 9 and the 1581 as device 8, and there are 2 partitions 
on the 1581 disk, and after listing the partitions we want the second 
partition, so we change into that partition, and then move to the SD2IEC to 
finally copy all the files. 

cd d08:
lp
part b
cd d09:
copy * d08:

Now if we then wanted to copy files from a 1541 as device 10 and have them 
copied to the second partition on the 1581 we would do this:

cd d08:
part root 
lp
part b
cd d10:
copy * d08:

Now we have moved to root, listed partitions, moved into the second one, then 
went to the 1541 and finally copied all the files to the 1581, which was left 
sitting in the second partition. 

I hope that helps. Thanks for the feedback! 
- Chiron 





Sent from my iPhone

On Dec 30, 2021, at 7:55 PM, Angie & Jay <uberhare@xxxxxxxxx> wrote:


MKDIR on my 1581 gives me a "syntax error".

On Thu, 30 Dec 2021 at 10:43, Chiron Bramberger 
<dmarc-noreply@xxxxxxxxxxxxx> wrote:
I’ve updated ChiCLI with basic support for 1581 drives and partitions. It 
only supports partitions that exist in the root partition. I’ve only tested 
in VICE as my 1581 needs a pcb. 

I also added a help command so you can look up help for a specific command 
and it pulls the help from a help file. 

It would be great if someone with a real 1581 could test this out and let me 
know if it works. 

https://github.com/chironb/ChiCLI

Thanks!
- Chiron 

Sent from my iPhone

Other related posts: