Class NibbleUtil

java.lang.Object
org.applecommander.device.nibble.NibbleUtil

public class NibbleUtil extends Object
  • Constructor Details

    • NibbleUtil

      public NibbleUtil()
  • Method Details

    • decodeOddEven

      public static int decodeOddEven(DataBuffer rawData, int offset)
      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

      public static void encodeOddEven(DataBuffer data, int offset, int value)
      Encode odd-even bytes to be stored on disk. See decodeOddEven for the format.
      See Also: