Commit Graph

26 Commits

Author SHA1 Message Date
Vince Weaver 58bd996bdf gears: even smaller 2023-01-24 23:00:15 -05:00
Vince Weaver 301eb86fc6 dos33: mkdos33fs: fix really embarassing = vs == bug
the catalog code was mostly working by accident

should never have learned Pascal first
2022-09-05 21:09:00 -04:00
Vince Weaver bd9ab1915a dos33: mkdosfs fix bug when more than 105 files 2022-09-05 21:04:18 -04:00
Vince Weaver 4cde5ae284 dos33: re-write mkdos33fs catalog creation a bit more robust
in theory can generate images with non-105 catalog entries
should test this thoroughly
2022-09-05 20:47:29 -04:00
Vince Weaver c2faa9ec61 dos33: update slightly how mkdos33fs works 2022-09-05 18:58:09 -04:00
Vince Weaver 046342a81c utils: mkdos33fs: fix embarassing bug
was overwriting VTOC when copying DOS over
2022-07-26 14:58:34 -04:00
Vince Weaver cbdb595f63 dos33: more robust error checking
This was inspired by a request from Micah Cowan

hopefully this didn't break anything
2022-06-09 19:53:10 -04:00
Vince Weaver 0007cbe3a9 dos33: return error code if we hit an error
this can make scripting easier
2022-06-09 18:54:38 -04:00
Vince Weaver 72f8e5070f dos33: some more comments to clear up the last fix
needed to break out Beneath Apple DOS for this one

TSL_OFFSET_L/H says what offset in the file the first TSL entry
is representing. It's a 16-bit sector value.  Apparently not everything
uses this value.
2022-06-09 17:59:21 -04:00
Nick Downing 08f870dd38 Fix critical bug with saving that prevents BLOAD/BRUN working on the saved file 2022-06-09 17:56:46 -04:00
Vince Weaver 87f7fc15f5 dos33: fix some issues when copying files off disk image
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.
2022-06-09 16:46:17 -04:00
Vince Weaver db49ead0b6 dos33: try to propogate errors a bit better 2022-06-06 17:01:07 -04:00
Vince Weaver 6b5c3612b0 dos33: fix disk corruption on DELETE
was using &vtoc where it should have just been vtoc so writing the
pointer value rather than the buffer.  urgh
2021-08-24 18:15:00 -04:00
Vince Weaver 0b52583de6 dos33: add debugging
chasing a weird corruption issue on DELETE
2021-08-24 17:06:05 -04:00
Vince Weaver 5e04bbf227 prodos: implement RENAME support 2021-08-03 13:33:29 -04:00
Vince Weaver 468387a47f dos33: make catalog printing a bit more robust
had a (corrupted?) LOGO data disk that was causing issues
2021-07-26 16:58:18 -04:00
Vince Weaver a49b1d8c85 hgrmist: work on autodetect of sound 2021-07-08 00:36:35 -04:00
Vince Weaver 6475967948 dos33_raw: add some sanity checks
try to warn a bit if we write beyond the end of what we expect
2021-04-26 15:24:48 -04:00
Vince Weaver fc2c2f3f91 dos33: split off the dump code 2021-03-29 16:28:14 -04:00
Vince Weaver c3a278b76a utils: dos33: split off catalog code 2021-03-29 16:02:55 -04:00
Vince Weaver 8e05dc8b32 utils: mkdos33fs: improve some more 2021-03-29 14:25:58 -04:00
Vince Weaver a2a9d6ef52 utils: dos33: whitespace cleanup 2021-03-29 13:45:15 -04:00
Vince Weaver 7458087e2d utils: dos33: split out the vtoc_bitmap code so we can share it 2021-03-29 13:33:03 -04:00
Vince Weaver a64a65ccdd dos33fs: allow ignoring file errors to create fancy CATALOGs 2021-03-01 22:46:19 -05:00
Vince Weaver 7736360c30 utils: fix up so all compiles again 2021-01-05 16:13:43 -05:00
Vince Weaver b1238af49d re-arranged the entire directory structure
this will probably upset people
2021-01-05 15:29:31 -05:00