A command-line tool to convert Apple II DSK images to WOZ2 format. Based on Tom Harte's dsk2woz command-line tool. (https://github.com/TomHarte/dsk2woz)
Usage:
dsk2woz2 input.dsk output.woz
Reads the contents of the disk input.dsk
and outputs the WOZ2-format file output.woz
.
There are no dependencies beyond the C standard library. So e.g.
cc dsk2woz2.c -o dsk2woz2
Apple II DSK images contain implicitly-ordered sectors; the order depends on whether the image contains a DOS 3.3 image or a Pro-DOS image.
For the purposes of this tool if the file extension of the input disk has a 'p' in it then it is treated as a Pro-DOS image. Otherwise it is treated as a DOS 3.3 image.