// Some of the dark star stuff is 8-bit, so we have to make sure we're positive
int denybble(byte[] data, int pos)
        {
        // The spec is wrong: it's LSB, then MSB
        // int v = (data[pos] << 4) | data[pos+1];
        int v = (data[pos + 1] << 4) | data[pos];
        // Some of the dark star stuff is 8-bit, so we have to make sure we're positive
        if (v < 0) v += 256;
        return v;
        }
// int v = (data[pos] << 4) | data[pos+1];
int v = (data[pos + 1] << 4) | data[pos];
// Some of the dark star stuff is 8-bit, so we have to make sure we're positive
if (v < 0) v += 256;
return v;
int denybble(byte[] data, int pos)
{
// The spec is wrong: it's LSB, then MSB
// int v = (data[pos] << 4) | data[pos+1];
int v = (data[pos + 1] << 4) | data[pos];
// Some of the dark star stuff is 8-bit, so we have to make sure we're positive
if (v < 0) v += 256;
return v;
}
int denybble(byte[] data, int pos)
{
// The spec is wrong: it's LSB, then MSB
// int v = (data[pos] << 4) | data[pos+1];
int v = (data[pos + 1] << 4) | data[pos];
// Some of the dark star stuff is 8-bit, so we have to make sure we're positive
if (v < 0) v += 256;
return v;
}