This commit is contained in:
Denis Molony 2019-09-05 18:03:39 +10:00
parent 03a38e11f0
commit e216a805ad
3 changed files with 9 additions and 2 deletions

View File

@ -251,7 +251,7 @@ public class DiskFactory
{
if (debug)
System.out.println ("Checking woz 3.5");
AppleDisk disk800 = new AppleDisk (wozFile, 200, 8);
AppleDisk disk800 = new AppleDisk (wozFile, 100 * wozFile.getSides (), 8);
if (ProdosDisk.isCorrectFormat (disk800))
{
if (debug)

View File

@ -28,7 +28,7 @@ public class DiskReaderGCR extends DiskReader
// ROL first checksum
checksums[0] = (checksums[0] & 0xFF) << 1; // shift left
if ((checksums[0] > 0xFF)) // check for overflow
++checksums[0]; // update bit 0
++checksums[0]; // set bit 0
// 6&2 translation
byte d3 = byteTranslator.decode (inBuffer[inPtr++]); // composite byte

View File

@ -138,6 +138,13 @@ public class WozFile
return info.diskType;
}
// ---------------------------------------------------------------------------------//
public int getSides ()
// ---------------------------------------------------------------------------------//
{
return info.sides;
}
// ---------------------------------------------------------------------------------//
public int getTracks ()
// ---------------------------------------------------------------------------------//