Commit Graph

57 Commits

Author SHA1 Message Date
Rob McMullen
53e937c870 Fixed namespace error of ByteNotInFile166 2018-07-20 08:04:54 -07:00
Rob McMullen
e4ce309bd3 Added file extensions recognition to create_executable_file_image
* you can write a XEX to an Apple DOS 3.3 image, for instance
2018-07-17 18:33:16 -07:00
Rob McMullen
1a7381b865 Classes no longer unnecessarily subclass from object, as in py3 it's the default 2018-06-24 17:20:32 -07:00
Rob McMullen
6b9cf6d4d2 Converted "from errors import *" to "from . import errors" 2018-06-24 12:10:59 -07:00
Rob McMullen
7e3159b175 Disk image filenames should be str, not encoded bytes 2018-06-24 09:51:46 -07:00
Rob McMullen
1968cd9717 Fixes to convert filenames to str rather than bytes 2018-06-23 22:05:35 -07:00
Rob McMullen
ff937ebcc0 Removed future library; python 3.6 only as of version 7.0 2018-06-04 10:27:51 -07:00
Rob McMullen
ebdcb01c40 Changed numpy convenience method tostring to tobytes 2018-05-26 20:07:43 -07:00
Rob McMullen
0d7645f243 Added framework and 'boot' command to create boot images 2017-05-09 17:58:16 -07:00
Rob McMullen
eee02b14cb Create blank sector if no data passed into create_sector 2017-05-09 14:59:31 -07:00
Rob McMullen
c30f390fed All tests passing for python 3 2017-05-07 19:33:38 -07:00
Rob McMullen
841aa1dc9b WIP for py3 support 2017-05-07 18:58:10 -07:00
Rob McMullen
bddae24cb1 Futurize --stage1 changes 2017-05-07 13:31:45 -07:00
Rob McMullen
6047824405 Added 'if _xd:' wrapper around expensive debug logging calls
* generating numpy lists for printing is pretty expensive when doing it thousands of time as in the unit tests
2017-05-07 12:23:51 -07:00
Rob McMullen
c897460df0 PEP8 whitespace fixes 2017-03-23 10:06:37 -07:00
Rob McMullen
e980019bf6 Moved Atari boot disk-specific stuff out of base class 2017-03-02 12:28:05 -08:00
Rob McMullen
1262e23df6 Fixed an argument list after refactoring 2017-02-26 19:55:12 -08:00
Rob McMullen
f00ef7cbea Fixed variable name typo 2017-02-26 15:26:40 -08:00
Rob McMullen
e9af557200 Added option to show vtoc 2017-02-26 14:14:25 -08:00
Rob McMullen
f4057f6ad5 Added Dirent abstract base class and ability for find_dirent to take filename or dirent 2017-02-26 14:06:29 -08:00
Rob McMullen
4d1f17677d Added pretty printing of VTOC by track
* changed VTOC, Directory classes to keep pointer to header, not just sector sizes
2017-02-26 13:34:07 -08:00
Rob McMullen
151cf06115 Added --shred command line arg to fill free sectors with zero 2017-02-26 13:07:36 -08:00
Rob McMullen
91dc32e430 Added missing argument to create_executable_file_image 2017-02-26 12:45:54 -08:00
Rob McMullen
07cdb05ba2 Added -s command to use pyatasm to assemble MAC/65 source and place it in a file in the disk image 2017-02-26 12:14:23 -08:00
Rob McMullen
d19dd3b218 Added file manipulation commands to atrcopy script 2017-02-24 11:57:51 -08:00
Rob McMullen
9733aa4777 Changed get_filename() into a property 2017-02-24 08:42:04 -08:00
Rob McMullen
4485cd7e63 Fixed deleted flag and track/sector list length. Most delete tests pass 2017-02-23 22:54:01 -08:00
Rob McMullen
fe5fc502ca Progress in deleting DOS 3.3 files 2017-02-23 22:16:18 -08:00
Rob McMullen
605f77afb3 Removed SectorBuilder class; fixed DOS 3.3 track/sector list
* put SectorBuildeR functionality into DiskImage
2017-02-23 19:16:22 -08:00
Rob McMullen
4514e46161 Fixed parsing of disk images broken after recent rearrangement of classes 2017-02-23 15:34:56 -08:00
Rob McMullen
6e8cf1c4c4 Moved some classes to different files, fixed Atari dos tests
* consolidated bytes_per_sector and sector_size (which mean the same thing) into sector_size
* moved AtrHeader, XfdHeader to ataridos.py
* moved base classes like WriteableSector, SectorList, etc. to utils.py
2017-02-23 14:23:29 -08:00
Rob McMullen
f84cea7170 Moved file creation classes to utils.py
* prefer to pass around header than individual attributes so instances can get what they want
2017-02-23 13:53:32 -08:00
Rob McMullen
35c13bb9d5 Added BaseHeader for superclass 2017-02-23 13:02:56 -08:00
Rob McMullen
5a1718bf1d Changed sector labels for DOS 33 to report track, sector rather than sector number 2017-02-22 12:12:52 -08:00
Rob McMullen
d851a06ae1 WIP on DOS 3.3 support 2017-02-22 07:19:52 -08:00
Rob McMullen
7151739ad3 Added transaction support to write & delete files.
* if error occurs, disk image returned to state it was before the call
2017-02-22 05:42:40 -08:00
Rob McMullen
ea92e91865 Added file deletion for Atari DOS 2017-02-21 23:07:24 -08:00
Rob McMullen
c0340a1807 Fixed file number in Atari DOS files 2017-02-21 19:49:03 -08:00
Rob McMullen
767e76671b First code to add files to an Atari DOS image 2017-02-21 19:25:47 -08:00
Rob McMullen
7e51284cb1 Fix for non-standard boot headers using a single sector instead of usual minimum of 3 sectors 2016-10-01 18:42:02 -07:00
Rob McMullen
c89b89f9a7 Fixed sector number offset for raw sector labels 2016-07-20 18:12:07 -07:00
Rob McMullen
c6ef73358a Removed sector size assumption of 128 bytes if non-standard disk image size 2016-07-20 10:02:49 -07:00
Rob McMullen
7500aafce1 Added strict/relaxed checking to allow autoload scanning to match as narrowly as possible
* added cart image names from atari800 source
2016-06-02 16:59:59 -07:00
Rob McMullen
be7dd609c7 Initial support for parsing cartridge images 2016-06-02 15:09:34 -07:00
Rob McMullen
0b6b704667 Added addl sanity checking for boot sector params in BootDiskImage 2016-06-02 13:00:21 -07:00
Rob McMullen
f1038329ee Added parsers and MIME type definitions from Omnivore
* restructured main script to use parsers, replacing the old logic
2016-06-01 15:11:30 -07:00
Rob McMullen
4c4da4bf38 Added add_atr_header and removed hack to insert a header into an already existing disk image
* until I think of a better solution, forcing you to create an entirely new disk image
2016-05-05 23:11:06 -07:00
Rob McMullen
cfe6c775bb Added ability to create ATR header 2016-05-05 13:59:56 -07:00
Rob McMullen
5465edcfdf Added error checking for valid VTOC 2016-03-28 15:48:46 -07:00
Rob McMullen
66e7c14ddb Changed permissions to 644 2016-03-25 16:09:29 -07:00