mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2026-10-25 14:11:01 +00:00
Correcting free map byte calculation.
This commit is contained in:
1 parent
a076a6a635
commit
8480f19454
1 file changed
+1
-1
+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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user