Package org.applecommander.device.nibble
Class NibbleUtil
java.lang.Object
org.applecommander.device.nibble.NibbleUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intdecodeOddEven(DataBuffer rawData, int offset) Decode odd-even bytes as stored on disk.static voidencodeOddEven(DataBuffer data, int offset, int value) Encode odd-even bytes to be stored on disk.
-
Constructor Details
-
NibbleUtil
public NibbleUtil()
-
-
Method Details
-
decodeOddEven
Decode odd-even bytes as stored on disk. The format will be in two bytes. They are stored as such:XX = 1d1d1d1d (odd data bits) YY = 1d1d1d1d (even data bits)XX is then shifted by a bit and ANDed with YY to get the data byte. See page 3-12 in Beneath Apple DOS for more information. -
encodeOddEven
Encode odd-even bytes to be stored on disk. See decodeOddEven for the format.- See Also:
-