File sector start addresses are 16 bits long (well, maybe only 9)

This commit is contained in:
David Schmidt
2019-02-22 13:45:17 -05:00
parent ac885cbe4c
commit eb8f3573b3
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.obj
.project

View File

@@ -48,7 +48,7 @@ void readDirectory()
std::unique_ptr<Dirent> dirent(new Dirent);
dirent->filename = filename;
dirent->type = buffer[8];
dirent->startSector = buffer[10];
dirent->startSector = buffer[9] * 256 + buffer[10];
dirent->sectorCount = buffer[11];
directory[filename] = std::move(dirent);
}