CPCWiki forum

General Category => Emulators => Topic started by: Ythcal on 12:59, 23 February 11

Title: DSK-Manager for unix/osx?
Post by: Ythcal on 12:59, 23 February 11
Does anyone know about a tool for unix/osx to manage .DSKs? (create image, Import/Export single files)


I found iDSK, but it seems to be french only :-(
Title: Re: DSK-Manager for unix/osx?
Post by: SyX on 14:32, 23 February 11
I use iDSK and only have minor text in french, the rest is in english, including how you can see the command line help:
$ iDSK
You did not select a DSK file to work with !

--------------------------------------------------------------------------------
################################################################################
iDSK version 0.15 (by Demoniak, Sid, PulkoMandy), www.code.google.com/p/cpcsdk
################################################################################

Usage :
        iDSK <DSKfile> [OPTIONS] [files to process]
OPTIONS :                              EXAMPLE
-l : List disk catalog                 iDSK floppy.dsk -l
-g : export ('Get') file               iDSK floppy.dsk -g myprog.bas
-r : Remove file                       iDSK floppy.dsk -r myprog.bas
-n : create New dsk file               iDSK floppy2.dsk -n
-z : disassemble a binary file         iDSK floppy.dsk -z myprog.bin
-b : list a Basic file                 iDSK floppy.dsk -b myprog.bas
-d : list a Dams file                  iDSK floppy.dsk -d myprog.dms
-h : list a binary file as Hexadecimal iDSK floppy.dsk -h myprog.bin
-i : Import file                       iDSK floppy.dsk -i myprog.bas
-t : fileType (0=ASCII/1=BINARY)           ... -t 1
-e : hex Execute address of file           ... -e C000 -t 1
-c : hex loading address of file           ... -e C000 -c 4000 -t 1
-f : Force overwriting if file exists      ... -f
-o : insert a read-Only file               ... -o
-s : insert a System file                  ... -s
-u : insert file with User number          ... -u 3
--------------------------------------------------------------------------------
Please report bugs ! - Demoniak/Sid/PulkoMandy
Although if you like, you can suggest to the authors for an english version, they are always very helpful and open to the user suggestions  :)
Title: Re: DSK-Manager for unix/osx?
Post by: Ythcal on 17:57, 23 February 11
OK, the homepage linked at the wiki just offers an older version (0.13) which ist french.


Where did you get 0.15? At the mentioned website of the header (www.code.google.com/p/cpcsdk) I only find a windows version...
Title: Re: DSK-Manager for unix/osx?
Post by: SyX on 21:16, 23 February 11
Well, i downloaded the sources from the svn and recompiled it.

I have attached the sources and an executable compiled for linux x86-64. For compiling you only have to:$ sh build_config.sh
$ ./configure
$ make
If you find another problem, tell me :)
Title: Re: DSK-Manager for unix/osx?
Post by: Ythcal on 23:58, 23 February 11
Great, thank you!  :)
Title: Re: DSK-Manager for unix/osx?
Post by: mr_lou on 07:03, 24 February 11
I have always used Windoze tools with wine on my Linux; ManageDsk, and some other commandline tool.

Will have to take a look at iDsk though. But I'm pretty sure I went with a 32bit version of Ubuntu when installing, so I guess I can't use a 64bit version of iDsk then?
Title: Re: DSK-Manager for unix/osx?
Post by: SyX on 21:38, 24 February 11
The executable no because i make a 64 bit version for my Debian 64, but you can compile it with the same instructions in your system ;)
Title: Re: DSK-Manager for unix/osx?
Post by: ced64k on 23:21, 09 February 14
up :)

Could someone tell me the correct command to create a .dsk (replace .dsk if existing) and add a binary file to it ?

I tried with this command, I can see the file with CAT, but I can load it (the Amstrad returns to Basic). I tried with CPCDiskXP, with the same .bin and it works.

iDSK mydisk.dsk -i -n -f -t 1 mybin.bin

And:
iDSK mydisk.dsk -i  mybin.bin

And also:

iDSK mydisk.dsk -n -i -e 6000 -c 6000 -t 1 -f  mybin.bin
(not sure about the hex value)


-n : create New dsk file
-i : Import file
-t : fileType (0=ASCII/1=BINARY)
-e : hex Execute address of file
-c : hex loading address of file
-f : Force overwriting if file exists

(I compiled 0.13 and 0.15 under Mac OS X 10.9)

Thanks :)
Title: Re: DSK-Manager for unix/osx?
Post by: ralferoo on 00:05, 10 February 14
I used this with good results:

iDSK image.dsk -i program.bin -e 8000 -c 8000 -t 1 -f


Title: Re: DSK-Manager for unix/osx?
Post by: ced64k on 06:34, 10 February 14
Thanks it works :)

I only have a problem with 0.15, when the same command, it returns "Segmentation fault: 11". However I don't have error during compilation. With 0.13 it works.
Title: Re: DSK-Manager for unix/osx?
Post by: CraigsBar on 23:08, 19 February 14
Quote from: ced64k on 23:21, 09 February 14

(I compiled 0.13 and 0.15 under Mac OS X 10.9)




Any chance you can upload binary versions of one or both of these?


Thanks


Craig
Title: Re: DSK-Manager for unix/osx?
Post by: ced64k on 06:26, 20 February 14
iDisk v0.13
https://github.com/ced64k/cpc-mac-asm/raw/master/iDSK (https://github.com/ced64k/cpc-mac-asm/raw/master/iDSK)

I have problems with 0.15
Powered by SMFPacks Menu Editor Mod