Correcting free map byte calculation.

This commit is contained in:
a2geek committed 2026-09-20 11:34:03 -05:00
1 parent a076a6a635
commit 8480f19454
1 file changed
+1 -1
@@ -732,7 +732,7 @@ public class DosFormatDisk extends FormattedDisk {
*/
protected int getFreeMapByte(int track, int sector) {
int trackOffset = track * 4;
int sectorOffset = 1 - ((sector & 0x8) >> 3);
int sectorOffset = (device.getGeometry().sectorsPerTrack() - sector - 1) >> 3;
return 0x38 + trackOffset + sectorOffset;
}