Fixing bug for 6&2 decoding - was trying to populate the sector as 410 bytes instead of 256.

This commit is contained in:
Rob Greene
2025-08-04 12:56:16 -05:00
parent 31535a9c4b
commit 7625a19e39
@@ -70,7 +70,7 @@ public class Nibble62Disk525Codec implements NibbleDiskCodec {
// Decode data field
DataBuffer sectorData = DataBuffer.create(SECTOR_SIZE);
final int[] reverseValues = { 0x0, 0x2, 0x1, 0x3 };
for (int i=0; i<RAW_BUFFER_SIZE; i++) {
for (int i=0; i<sectorData.limit(); i++) {
int b1 = buffer.getUnsignedByte(i);
int lowerBits = RAW_BUFFER_SIZE - (i % 86) - 1;
int b2 = buffer.getUnsignedByte(lowerBits);