Commit Graph

302 Commits

Author SHA1 Message Date
Rob McMullen
07be99f20f Updated to version 6.1 2017-09-28 11:25:08 -07:00
Rob McMullen
0c1c2e339c Fixed #5: added missing segment parsers in KBootImage 2017-09-28 11:23:26 -07:00
Rob McMullen
85574e89f3 Updated version to 6.0 2017-08-17 10:47:01 -07:00
Rob McMullen
26d8c0b9db Merge branch 'master' of github.com:robmcmullen/atrcopy 2017-07-25 13:54:11 -07:00
Rob McMullen
6df7031dc6 fstbt: option not to show HGR page; use $2001 or $4001 to trigger 2017-07-25 13:51:11 -07:00
Rob McMullen
0a8cd454b5 Merge branch 'master' of github.com:robmcmullen/atrcopy 2017-07-24 18:03:28 -07:00
Rob McMullen
f15b5527c0 Don't save boot disk image if there are no segments to add to the image 2017-07-19 06:47:49 -07:00
Rob McMullen
36a6dd69fc dos33: workaround to ignore non-ascii characters. fails on beagle bros 'Alpha Plot.dsk' 2017-07-11 16:13:54 -07:00
Rob McMullen
d8d76a91bf fstbt: don't use interesting load pattern for HGR1 after the first one, just switch to page 1 when done 2017-07-07 19:50:29 -07:00
Rob McMullen
864fc14545 parsers: changed print to log.debug 2017-07-07 12:20:47 -07:00
Rob McMullen
27c38a3ec8 fstbt: added sector ranges available through the recent standard delivery changes 2017-07-07 12:19:04 -07:00
Rob McMullen
5d354d0b11 Changed templates so they can be imported into omnivore
* template images now have file extension
* .inf files are now in json format, including some omnivore metadata
2017-05-25 06:50:27 -07:00
Rob McMullen
1a4153c85f Updated version to 5.1 in preparation for pending release 2017-05-24 22:31:41 -07:00
Rob McMullen
8260774995 Fixed https://github.com/robmcmullen/omnivore/issues/209
* force unicode on uuid string conversion in py2
2017-05-18 22:48:45 -07:00
Rob McMullen
06e07bafe6 Added missing bail-out InvalidDiskImage error in ProDOS loader 2017-05-18 22:13:50 -07:00
Rob McMullen
9852a98852 Added debug logging to help track segment parse errors 2017-05-18 22:12:48 -07:00
Rob McMullen
f0c263b588 Added convenience function get_raw_index_from_address 2017-05-18 22:12:21 -07:00
Rob McMullen
e74b3b5b34 Fixed incorrectly formatted log.debug call 2017-05-12 20:11:08 -07:00
Rob McMullen
e577cda644 Removed some debug prints 2017-05-11 13:03:06 -07:00
Rob McMullen
3a0774d00d Merge branch 'fstbt' 2017-05-10 15:17:30 -07:00
Rob McMullen
b7f7a7dd81 Moved fstbt code into separate file that can be autogenerated 2017-05-10 15:16:02 -07:00
Rob McMullen
bdaa44755a Relaxed constraints for interleaving segments
* use size of smallest segment as size to interleave
* adjust downward if interleave factor not an integer multiple of size
2017-05-10 10:38:20 -07:00
Rob McMullen
dc2224a191 Added interesting load effect for first HGR screen 2017-05-10 05:47:57 -07:00
Rob McMullen
38b05e6dbd Added trigger version of fstbt that uses dummy values of d1 and d2 to set hgr1 and hgr2 2017-05-10 05:18:46 -07:00
Rob McMullen
0d7645f243 Added framework and 'boot' command to create boot images 2017-05-09 17:58:16 -07:00
Rob McMullen
48b77deda3 Added standard delivery boot loader 2017-05-09 17:53:28 -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
37c2311d1b Fixed some python 3 bytes/string issues 2017-05-08 22:26:48 -07:00
Rob McMullen
e9582cf95d Updated to version 5 for python 3 support 2017-05-08 12:55:50 -07:00
Rob McMullen
8284ae23b3 Changed to floor division which works on both py2 and py3 2017-05-08 11:03:04 -07:00
Rob McMullen
afc59593bd Changed StringIO to BytesIO
* renamed stringio property to bufferedio in SegmentData
2017-05-07 21:08:29 -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
53bf63d506 Fixed kboot for py3 2017-05-07 14:13:48 -07:00
Rob McMullen
fa476b1eab Fixed cartridge for py3 2017-05-07 14:03:25 -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
b63e0508ac Changing version to 4.0.0 because pypi won't install rc versions by default
* want this to be easy for non-python folks
2017-05-06 22:24:55 -07:00
Rob McMullen
1a11a8227e Changed to 4.0rc1 to announce 2017-05-06 22:13:01 -07:00
Rob McMullen
aef23b879a Fixed abbreviation of bytes: should be "B", not "b" which is bits 2017-05-06 19:53:15 -07:00
Rob McMullen
43c330c925 Fixed atari assembly and updated docs 2017-05-06 17:06:55 -07:00
Rob McMullen
e06a82e611 Added Apple BSAVE file parser
* added object file parsing into assembled files
* updated docs
2017-05-06 16:49:42 -07:00
Rob McMullen
c4d10dc08d Better formatting for template .inf files 2017-05-05 19:16:45 -07:00
Rob McMullen
1b1e7b1eb8 Removed old -l option for create 2017-05-05 13:33:09 -07:00
Rob McMullen
1520abd742 Fixed --help error with no arguments 2017-05-05 10:59:28 -07:00
Rob McMullen
fb933cc9f5 Removed special case argument hack to get "create -l" to work
* added list of available templates to "create --help"
2017-05-04 21:29:07 -07:00
Rob McMullen
dc099193c5 documentation updates 2017-05-04 19:53:41 -07:00
Rob McMullen
3867eb457b Now allowing some commands (specifically create) to be called without a disk image name 2017-05-04 19:36:23 -07:00
Rob McMullen
9cbd705421 Updated create command to show more info about image as it's created 2017-05-04 12:56:16 -07:00
Rob McMullen
b8a1b35d3e Added DOS 3.3 template to automatically run a binary named AUTOBRUN 2017-05-04 12:45:25 -07:00
Rob McMullen
57ba159a5a Fixed template argument and changed list_files to take params so other commands don't have to define dummy options 2017-05-04 12:44:44 -07:00
Rob McMullen
bd5664c79c Print sorted list of available templates 2017-05-04 10:45:45 -07:00
Rob McMullen
b766dcbf46 Corrected enhanced density image; it's DOS 2, not DOS 3
* added some system disk images
* oh yeah, and actually added the disk images
2017-05-04 10:43:58 -07:00
Rob McMullen
0b62f6a59b Skip the disk image summary print on crc command 2017-05-04 10:14:45 -07:00
Rob McMullen
5aa6bffeb8 Added CRC32 as option for list and separate command for parsable output 2017-05-04 10:09:15 -07:00
Rob McMullen
90c31a3672 Added check for read error in find_diskimage 2017-05-04 09:45:20 -07:00
Rob McMullen
052e084d1d Added template descriptions 2017-05-04 09:43:47 -07:00
Rob McMullen
8aa248acea Added basic template creation 2017-05-04 06:48:11 -07:00
Rob McMullen
8aa99b7978 Added file size summary for assembled files & print out only image filename on save 2017-05-03 12:05:02 -07:00
Rob McMullen
dc25b69d69 Added tests for binary file creation
* fixed return value mismatch in get_xex to create_executable_file_image
2017-05-03 12:00:34 -07:00
Rob McMullen
b0ac658749 Fixed argparse hack to allow 'atrcopy image COMMAND --help' 2017-05-02 21:26:28 -07:00
Rob McMullen
aa8e6f70a8 Fixed the --all option for the extract command 2017-05-02 20:02:54 -07:00
Rob McMullen
ad1eca7b17 Fixed setup to install dependencies using MANIFEST.in
* moved version number to _metadata.py
2017-05-02 19:43:21 -07:00
Rob McMullen
3efb3d1afa Fixed segment resize that wasn't updating data/style attrs in DefaultSegment 2017-05-02 16:17:45 -07:00
Rob McMullen
afc50070d2 Initial 'git subcommand' style command line parsing 2017-05-02 15:35:07 -07:00
Rob McMullen
e93f09e298 Added --run-addr (--brun) command line param
* for dos33, have to create a tiny segment at the beginning to store a JMP if addr is not the first byte in the first segment
2017-05-02 11:17:32 -07:00
Rob McMullen
d50ee6639c Added slice support for binary file writing 2017-05-01 08:41:23 -07:00
Rob McMullen
5438fa8dce Refs https://github.com/robmcmullen/omnivore/issues/194
* when removing comments, want to remove every comment in the range
2017-04-27 13:33:11 -07:00
Rob McMullen
184f9ac73d Removed some debug prints 2017-04-14 13:47:53 -07:00
Rob McMullen
136b55e831 Added set_style_at_indexes 2017-04-11 23:43:30 -07:00
Rob McMullen
b98e51568b Added convenience function to fix comments so no blank comments & style correctly marked 2017-04-10 23:38:13 -07:00
Rob McMullen
f02ad6a4e6 Removed get_nonblank_comments_at_indexes
* was a hack to try to restore comments to a region copied mid-comment-block
* better to enforce the "comment one byte" policy
2017-04-10 22:28:57 -07:00
Rob McMullen
f7d5f7d065 Fixed get_comment_restore_data to use ranges instead of just indexes to record lines without comments, too 2017-04-10 22:15:50 -07:00
Rob McMullen
281fea2038 Added segment parser serialization for https://github.com/robmcmullen/omnivore/issues/160 2017-04-04 22:21:03 -07:00
Rob McMullen
32d3e0de76 Fixed rectangle style setting if segment has an incomplete last line 2017-04-02 10:07:12 -07:00
Rob McMullen
510366051c Rectangle selection functions now take bytes_per_row as required parameter 2017-04-02 09:56:18 -07:00
Rob McMullen
b6a81a10b2 Moved the reconstruct_missing checks into __setstate__ 2017-03-28 16:11:26 -07:00
Rob McMullen
c28a3426f9 Added serializable memory map dict in segments 2017-03-28 15:48:10 -07:00
Rob McMullen
053c7a773e Changed get_xex to return segments: root segment & list of sub-segments 2017-03-26 22:19:09 -07:00
Rob McMullen
2e3a6147d5 Removed use_origin flag and assume any segment with a start_addr > 0 is meant to have an origin 2017-03-24 22:07:57 -07:00
Rob McMullen
c897460df0 PEP8 whitespace fixes 2017-03-23 10:06:37 -07:00
Rob McMullen
6f29e6053a Added resizable segments 2017-03-22 22:34:21 -07:00
Rob McMullen
7da17d65bc Reduced number of Atari cartridge groups to 2: 8-bit and 5200 2017-03-20 23:55:36 -07:00
Rob McMullen
491589d686 Added 'use_origin' flag to let disassembler know that it has a real origin in memory so that labels are meaningful 2017-03-20 23:48:59 -07:00
Rob McMullen
e7f0b49c34 Added comments for VTOC, Directory sectors in Atari, Apple DOS formats 2017-03-20 23:12:54 -07:00
Rob McMullen
f152a7dd2d Change to data style for some known locations 2017-03-20 14:29:08 -07:00
Rob McMullen
72c4fb430a Use parser name as the name of the default segment 2017-03-20 13:37:51 -07:00
Rob McMullen
a7b24e705e SegmentParser now stores ref to segment data so it can reparse without having to pass that in again 2017-03-19 13:07:19 -07:00
Rob McMullen
da7c7830bb Fixed data_base, style_base for indexed segments 2017-03-19 11:53:44 -07:00
Rob McMullen
592abfa0ee Fixed get_comment_locations to return unindexed style so those segments using OrderedWrapper will work 2017-03-18 20:54:36 -07:00
Rob McMullen
b7aa965d47 Fixed get_entire_style_ranges if split_comments passed in a None 2017-03-18 20:10:29 -07:00
Rob McMullen
7ad688854c removed some debug prints 2017-03-18 19:27:01 -07:00
Rob McMullen
d9ced9fbd2 Fixed get_comment_locations: was using a copy and returning a subset of the original 2017-03-17 23:43:43 -07:00
Rob McMullen
46409addae Fixed variable name typo 2017-03-15 06:13:04 -07:00
Rob McMullen
f34ec6e084 Addded git_style_mask/ get_style_bits to export list 2017-03-15 06:11:24 -07:00
Rob McMullen
026417b295 Added better comment save/restore methods 2017-03-13 11:49:35 -07:00
Rob McMullen
f1b0f5ebac Added faster comment splitting
* added functions to copy a segment & its base so comments can be marked on the copy of the base and show up in the copy of the segment
2017-03-13 07:05:37 -07:00
Rob McMullen
bdf0b67075 Fixed segment rawdata copy for non-indexed segments 2017-03-12 21:46:24 -07:00
Rob McMullen
bd4ff9569a Added copy function to raw data 2017-03-12 17:01:28 -07:00
Rob McMullen
476f0cd568 Added splitting-on-comments when using get_entire_style_ranges, refs: https://github.com/robmcmullen/omnivore/issues/117 2017-03-12 14:16:08 -07:00