| Hi,
still looking for a checksum code? For C++, try
int OTUS::CreateChecksum(int line)
{
int m = 0;
int max = 1 << 7;
int mask = max - 1;
int modifier = 13;
int modifierm2 = (modifier << 1) & mask;
line <<= 1;
if (line > 0)
{
while ((line & 1) == 0)
{
m <<= 1;
if (m >= max)
{
m = m & mask ^ modifier;
}
m ^= modifierm2;
line >>= 1;
}
}
return this->CheckSum ^= m;
}
with "line" being the record number to request. No record can be requested directly, you'll have to request all in the correct order.
If you need details on decoding record types, tell me ones still missing.
Anja |