mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Make the Zilog MCZ decoder a bit more robust.
This commit is contained in:
@@ -34,9 +34,7 @@ SectorVector ZilogMczDecoder::decodeToSectors(
|
||||
for (auto& rawrecord : rawRecords)
|
||||
{
|
||||
auto start = find_start_of_data(rawrecord->data);
|
||||
auto rawbytes = decodeFmMfm(start, rawrecord->data.cend());
|
||||
if (rawbytes.size() < 134)
|
||||
continue;
|
||||
auto rawbytes = decodeFmMfm(start, rawrecord->data.cend()).slice(0, 136);
|
||||
|
||||
uint8_t sectorid = rawbytes[0] & 0x1f;
|
||||
uint8_t track = rawbytes[1] & 0x7f;
|
||||
|
||||
@@ -17,7 +17,7 @@ static StringFlag outputFilename(
|
||||
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
setReaderDefaultSource(":t=0-79:s=0");
|
||||
setReaderDefaultSource(":t=0-76:s=0");
|
||||
setReaderRevolutions(2);
|
||||
Flag::parseFlags(argc, argv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user