mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-11-29 11:49:29 +00:00
tuning
This commit is contained in:
parent
bfe6fa8491
commit
68a133b2b0
@ -37,8 +37,8 @@ public class DiskReaderGCR extends DiskReader
|
||||
byte d1 = byteTranslator.decode (inBuffer[inPtr++]);
|
||||
|
||||
// reassemble data bytes
|
||||
byte b0 = (byte) (d0 | ((d3 & 0x30) << 2));
|
||||
byte b1 = (byte) (d1 | ((d3 & 0x0C) << 4));
|
||||
byte b0 = (byte) (d0 | ((d3 << 2) & 0xC0));
|
||||
byte b1 = (byte) (d1 | ((d3 << 4) & 0xC0));
|
||||
|
||||
// calculate running checksums
|
||||
outBuffer[outPtr++] = checksum (b0, checksums, 2, 0);
|
||||
@ -59,8 +59,8 @@ public class DiskReaderGCR extends DiskReader
|
||||
byte d2 = byteTranslator.decode (inBuffer[inPtr++]);
|
||||
|
||||
// reassemble checksums
|
||||
byte b0 = (byte) (d0 | ((d3 & 0x30) << 2));
|
||||
byte b1 = (byte) (d1 | ((d3 & 0x0C) << 4));
|
||||
byte b0 = (byte) (d0 | ((d3 << 2) & 0xC0));
|
||||
byte b1 = (byte) (d1 | ((d3 << 4) & 0xC0));
|
||||
byte b2 = (byte) (d2 | (d3 << 6));
|
||||
|
||||
// compare disk checksums with calculated checksums
|
||||
|
Loading…
Reference in New Issue
Block a user