Reading Apple ][ DOS 3.3 Disk Images with Python
I was feeling nostalgic for the days of Apple ][ DOS 3.3 and started re-familiarizing myself with the disk layout (VTOC, catalog entries, track/sector lists, etc)
Of course, I couldn't help but then implement them in Python.
Here is a python module that reads Apple ][ DOS 3.3 disk images and can both list the disk catalog and also dump the contents of a file.
http://jtauber.com/2009/02/15/a2disk.py
Enjoy!
Comments (3)
Edward J. Stembler on Feb. 16, 2009:
Ah, the good 'ol days!
So is ProDOS next on your list?
James Tauber on Feb. 16, 2009:
Oh wow, I didn't know about hachoir and have actually been thinking of implementing something similar myself.
Last Modified: Feb. 15, 2009
Author: James Tauber
Brian on Feb. 15, 2009:
Looks good. The optparse, struct, and hachoir modules could be useful for projects like these btw.