Closed dirkwhoffmann closed 2 years ago
Bug will be fixed in the next release. The culprit is function FSBlock::writeBAM(PETName<16> &name)
:
Old code:
if (k == 18) {
p[0] = 0; // No free blocks on the directory track
p[1] = 0x00;
p[2] = 0x00;
p[3] = 0x00;
}
New code:
if (k == 18) {
p[0] = 17; // 17 out of 19 blocks are free
p[1] = 0xFC; // Mark first two blocks as allocated
p[2] = 0xFF;
p[3] = 0x07;
}
For reference: BAM of a disk that has been formatted via
OPEN 1,8,15,"N:TEST, ID": CLOSE 1
v4.5b1 is online.
Reported to me by email:
More infos provided by Jan: