Author Topic: DSKGen  (Read 3297 times)

0 Members and 1 Guest are viewing this topic.

Offline AugustoRuiz

  • CPC664
  • ***
  • Posts: 121
  • Country: es
  • Liked: 156
  • Likes Given: 49
DSKGen
« on: 10: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


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


Any feedback is highly appreciated.

Offline redbox

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.751
  • Country: gb
    • redbox
  • Liked: 326
  • Likes Given: 267
Re: DSKGen
« Reply #1 on: 12: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!

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.796
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1033
  • Likes Given: 1747
Re: DSKGen
« Reply #2 on: 01:14, 27 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.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline AugustoRuiz

  • CPC664
  • ***
  • Posts: 121
  • Country: es
  • Liked: 156
  • Likes Given: 49
Re: DSKGen
« Reply #3 on: 17:39, 27 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!

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.568
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3136
  • Likes Given: 5784
Re: DSKGen
« Reply #4 on: 22:28, 27 April 13 »
GUI! GUI! :D

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1978
  • Likes Given: 4650
Re: DSKGen
« Reply #5 on: 01:37, 28 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).  :)
 
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


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


Any feedback is highly appreciated.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.796
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1033
  • Likes Given: 1747
Re: DSKGen
« Reply #6 on: 01:52, 28 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
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

AugustoRuiz_cannotlogin

  • Guest
Re: DSKGen
« Reply #7 on: 10:44, 28 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...

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1978
  • Likes Given: 4650
Re: DSKGen
« Reply #8 on: 20:24, 28 April 13 »
Thanks' you made it clear. :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline AugustoRuiz

  • CPC664
  • ***
  • Posts: 121
  • Country: es
  • Liked: 156
  • Likes Given: 49
Re: DSKGen
« Reply #9 on: 18: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

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.568
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3136
  • Likes Given: 5784
Re: DSKGen
« Reply #10 on: 12:19, 01 February 16 »
it'd be nice if it could be implemented in emulators or other tools...


Thanks for sharing!