don't try to interpret the boot sector

This commit is contained in:
Denis Molony 2015-12-13 21:16:07 +11:00
parent 2914bf699f
commit 4a36fa395c
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sun Dec 13 21:01:46 AEDT 2015
build.number=631
#Sun Dec 13 21:15:20 AEDT 2015
build.number=632

View File

@ -23,8 +23,8 @@ public class BootSector extends AbstractSector
{
// The first byte in the buffer is the number of sectors to read in (minus 1)
int sectors = buffer[0] & 0xFF;
// System.out.printf ("Sectors to read : %d%n", (sectors + 1));
if (sectors > 0 && sectors < 10) // probably not what I think it is
System.out.printf ("Sectors to read : %d%n", (sectors + 1));
if (false) // probably not what I think it is
{
int bufferSize = buffer.length * (sectors + 1);
byte[] newBuffer = new byte[bufferSize];