mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-08-10 06:25:04 +00:00
ran across this when trying to debug a different issue by default we can only get total sector size from the T/S lists (which is only a multiple of 256 bytes) but in addition A (basic) and B (binary) files also tell you the exact length. So we used that to truncate to the exact length Only it turns out some programs (I'm looking at you, cracked version of WAVY NAVY) intentionally set the file size to be wrong and so we were truncating things improperly I think this updated code is a bit more clear. Hopefully it doesn't break anything, I need a better test suite.
============ dos33fsprogs ============ Tools for manipulating an Apple II 140k dos33 filesystem. + dos33 : a tool for manipulating dos33 .dsk images + dos33_raw: put raw track/sectors onto a .dsk image this is used by the Myst demake + make_b : take a machine language blob and give it the size/offset header needed to BLOAD it from DOS3.3 + dos33_text2ascii: convert a dos33 text file to ASCII + mkdos33fs: create an Apple ][ DOS 3.3 filesystems