[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NIB and DSK questions
If you want to see how a DSK gets turned into a NIB, here's the source I wrote/adopted from information largely obtained by reading Beneath Apple Dos
http://java-ace.svn.sourceforge.net/viewvc/java-ace/jace/src/jace/hardware/FloppyDisk.java?revision=169&view=markup
The nibbilize routine starts at line 106 and it writes out a whole NIB image of a DSK.
Converting back is something I do one track at a time using scheduled writes (so that way when there are many updates to the same track, I just write out the track at once). The process converts a whole track back to raw binary for the DSK image, in the desired sector order. This process starts at line 241. Notice that I had to change my scan logic at line 268 to work around a potential dos 3.3 bug that munges header byte signatures!
-Brendan