CPCWiki forum

General Category => Applications (CPC and CPC-related) => Topic started by: AugustoRuiz on 08:31, 26 April 13

Title: DSKGen
Post by: AugustoRuiz on 08:31, 26 April 13
Hi guys!


I've created a commandline program to generate RAW DSKs. It's called DSKGen. You can see the documentation and download it from here:


DSKGen - CPC Tools (https://sites.google.com/site/augustoruiz/dskgen)


You need .NET Framework 2.0 or higher (or Mono, so yes, you can run it from linux!)


Any feedback is highly appreciated.
Title: Re: DSKGen
Post by: redbox on 10:14, 26 April 13
This is a useful tool for me for cross-dev.

At the moment, I assemble in WinApe and write to the DSK in there.  Then I eject the DSK and load it into the HxC to try on my real CPC.

But now I can write the BIN file directly to the PC, use your tool to create a DSK wrapper and then load it straight into the HxC - all using one script.

So thank you!
Title: Re: DSKGen
Post by: AMSDOS on 23:14, 26 April 13
Quote from: redbox on 10:14, 26 April 13
This is a useful tool for me for cross-dev.

At the moment, I assemble in WinApe and write to the DSK in there.  Then I eject the DSK and load it into the HxC to try on my real CPC.

But now I can write the BIN file directly to the PC, use your tool to create a DSK wrapper and then load it straight into the HxC - all using one script.

So thank you!


In Winape there's a thing called "Edit Disc"(?), which lets you Drop files onto a Disc Image, and I think you can even move Files from that back onto the PC.
Title: Re: DSKGen
Post by: AugustoRuiz on 15:39, 27 April 13
Quote from: AMSDOS on 23:14, 26 April 13

In Winape there's a thing called "Edit Disc"(?), which lets you Drop files onto a Disc Image, and I think you can even move Files from that back onto the PC.

True! But you cannot create a makefile that invokes that functionality, so I created this little utility ;)

The Edit Disc from WinApe has a lot more functionality. It was great to be able to check if my dsks were properly created using that part of WinApe!
Title: Re: DSKGen
Post by: Gryzor on 20:28, 27 April 13
GUI! GUI! :D
Title: Re: DSKGen
Post by: TFM on 23:37, 27 April 13
What is the difference between DSKs created by DSKGen or by an emulator. (I don't know what do you mean by raw format either, maybe you can explain that a bit).  :)

Quote from: AugustoRuiz on 08:31, 26 April 13
Hi guys!


I've created a commandline program to generate RAW DSKs. It's called DSKGen. You can see the documentation and download it from here:


DSKGen - CPC Tools (https://sites.google.com/site/augustoruiz/dskgen)


You need .NET Framework 2.0 or higher (or Mono, so yes, you can run it from linux!)


Any feedback is highly appreciated.
Title: Re: DSKGen
Post by: AMSDOS on 23:52, 27 April 13
Quote from: AugustoRuiz on 15:39, 27 April 13
True! But you cannot create a makefile that invokes that functionality, so I created this little utility ;)

The Edit Disc from WinApe has a lot more functionality. It was great to be able to check if my dsks were properly created using that part of WinApe!


Fair enough.  ;D
Title: Re: DSKGen
Post by: AugustoRuiz_cannotlogin on 08:44, 28 April 13
Quote from: TFM/FS on 23:37, 27 April 13
What is the difference between DSKs created by DSKGen or by an emulator. (I don't know what do you mean by raw format either, maybe you can explain that a bit).  :)

I cannot login right now...?
The main difference is that files are written starting from track 0, and using the sectors specified in the XML file. So, for example, you can set it so sectors used are C1 to C9 or 41 to 49, or whatever you want.

DSKGen will not generate the CPM catalog, that's what I meant by saying RAW. It directly writes to sectors, and generates an asm table that indicates starting track, side and sector, and the file length. Files are written in consecutive sectors. If the end of the side is reached, it'll continue on the other side, at the first track and sector...
DSKs generated with this tool are meant (as of today) to be read accessing the FDC directly, and run with |CPM, as no AMSDOS catalog nor headers are created.
Hope this helps...
Title: Re: DSKGen
Post by: TFM on 18:24, 28 April 13
Thanks' you made it clear. :)
Title: Re: DSKGen
Post by: AugustoRuiz on 17:10, 20 January 16
Hello all!
DSKGen has been reimplemented. This time, in plain C++, so it is truly multi-platform.
It supports a lot of disc types and several catalog formats, and it is open source.
You can get the source from:
GitHub - AugustoRuiz/dskgen: Tool to create different types of .dsk files (https://github.com/AugustoRuiz/dskgen)
Title: Re: DSKGen
Post by: Gryzor on 11:19, 01 February 16
it'd be nice if it could be implemented in emulators or other tools...


Thanks for sharing!
Powered by SMFPacks Menu Editor Mod