Note: diskii is not stable yet! I don't expect to remove functionality, but I'm still experimenting with the command syntax and organization, so don't get too comfy with it.
diskii-the-tool is a commandline tool for working with Apple II disk images. Given that AppleCommander already does everything, it's not terribly necessary. It is, however, mine. Minor benefits (right now) are binaries you can copy around (no Java needed), support for Super-Mon symbol tables on NakedOS disks, and creation of "Standard Delivery" disk images.
diskii-the-library is probably more useful: a library of disk-image-manipulation code that can be used by other Go programs.
diskii's major disadvantage is that it mostly doesn't exist yet.
It rhymes with “whiskey”.
Eventually, it aims to be a comprehensive disk image manipulation tool, but for now only some parts work.
The library code aims (a) to support the commandline tool operations, and (b) to replace the "read and write disk images" code of the goapple2 emulator.
Current disk operations supported:
Assuming you have Go installed, run
go get -u github.com/zellyn/diskii
You can also download automatically-built binaries from the latest release page. If you need binaries for a different architecture, please send a pull request or open an issue.
Short-term TODOs/roadmap/easy ways to contribute
My rough TODO list (apart from anything marked (✗) in the disk operations matrix is listed below. Anything that an actual user needs will be likely to get priority.
- Build per-platform binaries for Linux, MacOS, Windows.
GetFilefor DOS 3.3
- Add and implement the
- Implement it for Super-Mon
- Implement it for DOS 3.3
- Make 13-sector DOS disks work
- Read/write nybble formats
- Read/write gzipped files
- Add basic ProDOS structures
- Add ProDOS support
- http://a2ciderpress.com/ - the great grandaddy of them all. Windows only, unless you Wine
- http://retrocomputingaustralia.com/rca-downloads/ Michael Mulhern's MacOS package of CiderPress
- http://applecommander.sourceforge.net/ - the commandline, cross-platform alternative to CiderPress
- http://brutaldeluxe.fr/products/crossdevtools/cadius/index.html - Brutal Deluxe's commandline tools
- https://github.com/paleotronic/dskalyzer - cross-platform disk analysis tool (also written in Go!) from the folks who brought you Octalyzer.
- https://github.com/thecompu/Driv3rs - A Python Script to work with Apple III SOS DSK files
- https://github.com/dmolony/DiskBrowser - graphical (Java) disk browser that knows how to interpret and display many file formats
- https://github.com/slotek/apple2-disk-util - ruby
- https://github.com/slotek/dsk2nib - C
- https://github.com/robmcmullen/atrcopy - dos3.3, python
.dsk- could be DO or PO.
DOS 3.2.1: the 13 sectors are physically skewed on disk.
DOS 3.3+: the 16 physical sectors are stored in ascending order on disk, not physically skewed at all. The
|Logical Sector||DOS 3.3 Physical Sector||ProDOS Physical Sector|
RWTS - DOS
Sector mapping: http://www.textfiles.com/apple/ANATOMY/rwts.s.txt and search for INTRLEAV
Mapping from specified sector to physical sector (the reverse of what the comment says):
00 0D 0B 09 07 05 03 01 0E 0C 0A 08 06 04 02 0F
So if you write to "T0S1" with DOS RWTS, it ends up in physical sector 0D.
Commandline examples for thinking about how it should work
diskii ls dos33.dsk diskii --order=do ls dos33.dsk diskii --order=do --system=nakedos ls nakedos.dsk