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?
 
... 5 posts hidden. Click here to view all posts....
 
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.
2008-04-27 23:19
Burglar

Registered: Dec 2004
Posts: 1101
I'm wondering though, are speedtests done in vice accurate as opposed to testing on the real thing?
Just done a few tests and the results seem to make sense. Interleave 9 wins on loading + exodecrunch with a rather simple 2bitatn loader.
2008-04-28 06:51
tlr

Registered: Sep 2003
Posts: 1790
Vice is not accurate on this.
The simulated rotational speed in ~306 RPM, and all intersector gaps are 6 bytes.
Furthermore there is no additional tail gap at all.
2008-04-28 12:06
Burglar

Registered: Dec 2004
Posts: 1101
hmmm, I figured as much... if vice true drive emu is faster than a real 1541, I'll probably just use the default interleave of 10.
2008-04-30 11:45
HCL

Registered: Feb 2003
Posts: 728
Well hmm, sorry i'm late. But if it should appear that all priorly mentioned tools would suddenly stop working, you can have my own disk-tool with source and all :P. I didn't release it (yet?), but just ask :).
2008-04-30 13:13
Ninja

Registered: Jan 2002
Posts: 411
Same goes for the tool Doc Bacardi wrote :D
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
cobbpg
Holy Moses/Role
/Panor..
iAN CooG/HVSC
deetsay
DJ Space
Unicorn/TWA
Guests online: 134
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 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (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 Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

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