NIB and DSK questions
On Feb 5, 10:24*pm, BLuRry <brendan.rob...@gmail.com> wrote:
> Man, you are right. *Bad validation. *Sorry for not testing it -- wasliterally out the door after writing the core of the tool. *I've done some testing and kicked out some rather silly bugs. *Seems to work fine nowAFAIK and I've committed code and updated the sourceforge download to thisfixed copy.
>
> As I said, it basically takes advantage of the fact that JACE already performs conversion to and from NIB formats as part of emulating the disk drive, since the raw NIB format is required for proper disk drive emulation butto support writes, it has to convert the raw data back per track on the fly. *Converting a DSK or PO to NIB file is simply a matter of creating theFloppyDisk object and grabbing the generated NIB byte array. *ConvertingNIB to DSK is a little more interesting: *I read in the disk as a NIB and then I change the disk file to the output file and monkey with the variables that tell JACE what kind of disk image it is. *Once I loop through all tracks to flag them to be written, JACE converts the data and saves it asappropriate, respecting the desired sector ordering.
>
> ------------
>
> ConvertDiskImage
> ----------------
> Usage: java -cp jace.jar jace.ConvertDiskImage DISK_INPUT_NAME DISK_OUTPUT_NAME
> where DISK_INPUT_NAME is the path of a valid disk image,
> and DISK_OUTPUT_NAME is the path where you want to
> save the converted disk image.
> Supported input formats:
> * * * * DSK (assumes DO), DO, PO, 2MG (140kb), NIB
> Supported output formats:
> * * * * DO/DSK, PO, NIB
> -------
>
> -B
Command runs, but the output is wrong. NIB->DSK, the DSK file is the
same size as the NIB file (232960). It should be 143360.
Thanks again.
|