mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-03 01:29:32 +00:00
minor changes
This commit is contained in:
parent
ee48dc2a32
commit
9c9cf87ca8
|
@ -58,8 +58,8 @@ public class AssemblerProgram extends AbstractFile
|
|||
if (extraBuffer.length == 0)
|
||||
return text;
|
||||
|
||||
return text + "\n\n" + HexFormatter.format (extraBuffer, 0, extraBuffer.length,
|
||||
loadAddress + buffer.length);
|
||||
return text + "\n\nData outside actual buffer:\n\n" + HexFormatter
|
||||
.format (extraBuffer, 0, extraBuffer.length, loadAddress + buffer.length);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -7,9 +7,8 @@ import com.bytezone.diskbrowser.utilities.HexFormatter;
|
|||
|
||||
public class BootSector extends AbstractSector
|
||||
{
|
||||
private static final byte[] skew =
|
||||
{ 0x00, 0x0D, 0x0B, 0x09, 0x07, 0x05, 0x03, 0x01, 0x0E, 0x0C, 0x0A, 0x08, 0x06,
|
||||
0x04, 0x02, 0x0F, 0x00 };
|
||||
private static final byte[] skew = { 0x00, 0x0D, 0x0B, 0x09, 0x07, 0x05, 0x03, 0x01,
|
||||
0x0E, 0x0C, 0x0A, 0x08, 0x06, 0x04, 0x02, 0x0F };
|
||||
AssemblerProgram assembler1;
|
||||
AssemblerProgram assembler2;
|
||||
String name; // DOS or Prodos
|
||||
|
|
|
@ -107,9 +107,7 @@ class CatalogEntry extends AbstractCatalogEntry
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// get the file length
|
||||
if (dataSectors.size () > 0 && fileType != FileType.Text)
|
||||
else if (dataSectors.size () > 0) // get the file length
|
||||
{
|
||||
byte[] buffer = disk.readSector (dataSectors.get (0));
|
||||
switch (fileType)
|
||||
|
|
|
@ -50,7 +50,12 @@ class DosCatalogSector extends AbstractSector
|
|||
if (buffer[i + 3] == 0)
|
||||
addText (text, buffer, i + 3, 4, "");
|
||||
else
|
||||
{
|
||||
addText (text, buffer, i + 3, 4, getName (buffer, i));
|
||||
for (int j = 0; j < 24; j += 4)
|
||||
addText (text, buffer, i + j + 7, 4, "");
|
||||
addText (text, buffer, i + 31, 2, "");
|
||||
}
|
||||
addTextAndDecimal (text, buffer, i + 33, 2, "Sector count");
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,7 +48,7 @@ class DosVTOCSector extends AbstractSector
|
|||
addTextAndDecimal (text, buffer, 39, 1, "Maximum TS pairs");
|
||||
addText (text, buffer, 40, 4, "Not used");
|
||||
addText (text, buffer, 44, 4, "Not used");
|
||||
addText (text, buffer, 48, 1, "Last allocated track");
|
||||
addTextAndDecimal (text, buffer, 48, 1, "Last allocated track");
|
||||
addText (text, buffer, 49, 1, "Direction to look when allocating the next file");
|
||||
addText (text, buffer, 50, 2, "Not used");
|
||||
addTextAndDecimal (text, buffer, 52, 1, "Maximum tracks");
|
||||
|
|
Loading…
Reference in New Issue
Block a user