You can now decode Brother disks to images. No CRC checking, though.

This commit is contained in:
David Given
2018-10-21 19:10:33 +02:00
parent 3d8f06ea89
commit d7b2505720
9 changed files with 353 additions and 11 deletions

View File

@@ -25,8 +25,9 @@ void writeSectorsToFile(const std::vector<std::unique_ptr<Sector>>& sectors, con
size_t trackSize = sideSize * sideCount;
std::cout << fmt::format("{} tracks, {} sides, {} sectors, {} bytes per sector, {} kB total",
trackCount, sideCount, sectorCount, sectorSize,
trackCount * sideCount * sectorCount * sectorSize / 1024);
trackCount, sideCount, sectorCount, sectorSize,
trackCount * sideCount * sectorCount * sectorSize / 1024)
<< std::endl;
std::ofstream outputFile(filename, std::ios::out | std::ios::binary);
if (!outputFile.is_open())