Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Commad-line util to create D64?
2008-04-27 17:14
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Commad-line util to create D64?

I'm doing some tests with IRQ-loading, and it is a bit cumbersome to test. As it is now, I build my source (a bat-file that compile the different sources using KickAssembler, then run a bit of exomzier etc.), then use D64 editor to insert the files in a .D64, and then test using Vice with true drive emulation.
It would be nice to be able to skip that middle step, and just add an extra step in the bat file that would create the D64.
So I am looking for a command-line utility that takes a number of files as argument and then creates a D64 with those files.
Does such a utility exist?
2008-04-27 17:30
hollowman

Registered: Dec 2001
Posts: 474
I use c1541 from the vice package and have a line in my .bat file that says
c1541.exe < commands.txt
the commands.txt has the commands for c1541 to delete and add files to the .d64
2008-04-27 17:43
cadaver

Registered: Feb 2002
Posts: 1160
You could also try makedisk & prg2d64 from http://cadaver.homeftp.net/tools/c64tools.zip

C1541 is otherwise superior in functionality, but those programs allow you set the interleave as you wish, so you can experiment what interleave gives best IRQ-loading speed.
2008-04-27 17:48
Burglar

Registered: Dec 2004
Posts: 1101
I use Jackasser's cc1541, it has proper and configurable interleave settings. dunno if he released it though...
2008-04-27 17:53
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Thanks a lot to you all! Seems like there are a lot of options. For now makedisk seems like the easiest choice, and it worked just as I wanted right away.
Man, this is why I love CSDB!
2008-04-27 18:46
tlr

Registered: Sep 2003
Posts: 1790
c1541 in the current vice uses interleave 1 for writing which is not a very accurate emulation of a 1541.
This and track allocation order has been corrected in the viceplus repository.

There seems to be a lot of tools producing non 1541 identical interleaves and track allocations.
cbmconvert misses every other sector on tracks with an even number of sectors for instance.
They only get filled when the rest of the disk has filled up.

2008-04-27 18:47
JackAsser

Registered: Jun 2002
Posts: 2014
@Burglar: I'm glad you use it. It has been released in the source for S:T Lars Meeting III - Invite. Mind you that there is a bug in that version causing the BAM to have reversed bit order in each byte. Krill has fixed this in the version he bundle with his loader. This will still create a perfectly readable and copyable disk, however running a validation on the disk will cause mayhem. ;D Sorry for that!
2008-04-27 19:02
Burglar

Registered: Dec 2004
Posts: 1101
Quote: @Burglar: I'm glad you use it. It has been released in the source for S:T Lars Meeting III - Invite. Mind you that there is a bug in that version causing the BAM to have reversed bit order in each byte. Krill has fixed this in the version he bundle with his loader. This will still create a perfectly readable and copyable disk, however running a validation on the disk will cause mayhem. ;D Sorry for that!

I use the one from krill's loader, so I should be ok ;) thanks for the tool!
2008-04-27 19:25
Frantic

Registered: Mar 2003
Posts: 1648
Is this tool-by-jackasser-but-patched-by-krill available somewhere? I would lööööööööööööööööve to have it.

Yep!
2008-04-27 19:36
doynax
Account closed

Registered: Oct 2004
Posts: 212
This is one of those things you may want to consider writing your own tool for, well eventually anyway. The 1541 filesystem is really quite straightforward, check out Inside Commodore DOS, and a D64 file is merely dump of the sectors.

In other words you can control the interleave on a per-file basis, bypass the filesystem entirely for certain files, use extended tracks, shuffle file data bits to better suit your loader, generate minimal patches for previous versions, gather profiling data from your drivecode and lay out the files accordingly, and so forth.

Nothing major perhaps but having full control of your floppy contents and tools gives you a lot of power. Okay, so I admit to suffering from a severe case of the NIH syndrome, but still..
2008-04-27 20:00
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: This is one of those things you may want to consider writing your own tool for, well eventually anyway. The 1541 filesystem is really quite straightforward, check out Inside Commodore DOS, and a D64 file is merely dump of the sectors.

In other words you can control the interleave on a per-file basis, bypass the filesystem entirely for certain files, use extended tracks, shuffle file data bits to better suit your loader, generate minimal patches for previous versions, gather profiling data from your drivecode and lay out the files accordingly, and so forth.

Nothing major perhaps but having full control of your floppy contents and tools gives you a lot of power. Okay, so I admit to suffering from a severe case of the NIH syndrome, but still..


@doynax: My tool lets you control the interleave per file and optionally choose dir track and use track 18 for data. Split or not split files over track 18 etc.
 
... 5 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
E$G/HF ⭐ 7
MaD ][/Starship
Exile/Anubis
tlr
Guests online: 138
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.