This commit is contained in:
Denis Molony 2016-07-17 13:32:30 +10:00
parent c9eb6f0036
commit bb38d3d68f
2 changed files with 4 additions and 6 deletions

View File

@ -29,13 +29,13 @@ class DosTSListSector extends AbstractSector
if (da == null)
{
System.out.println ("Invalid sector address : null");
break; // throw exception
break; // throw exception?
}
if (da.getBlock () > 0 && dosDisk.stillAvailable (da))
{
System.out.println ("Invalid sector address : " + da);
break; // throw exception
break; // throw exception?
}
}
return true;
@ -52,6 +52,7 @@ class DosTSListSector extends AbstractSector
@Override
public String createText ()
{
// should check whether the next sector address is this sector
StringBuilder text = getHeader ("TS List Sector : " + name);
addText (text, buffer, 0, 1, "Not used");
addText (text, buffer, 1, 2, "Next TS list track/sector");

View File

@ -62,10 +62,7 @@ class DosVTOCSector extends AbstractSector
extra = "(VTOC and Catalog)";
else
extra = "";
addText (text,
buffer,
i,
4,
addText (text, buffer, i, 4,
String.format ("Track %02X %s %s", (i - 56) / 4,
getBitmap (buffer[i], buffer[i + 1]), extra));
}