public void DumpChecksumLocations(string info, byte[] allBytes)
{
//0x7BFFA & 0x7BFFB
byte b1 = allBytes[0x7BFFA];
byte b2 = allBytes[0x7BFFB];
int checksumAddress = 0;
bool found = true;
while (found)
{
found = false;
checksumAddress = Tools.Instance.findSequence(allBytes, checksumAddress, new byte[2] { b1, b2 }, new byte[2] { 1, 1 });
if (checksumAddress > 0)
{
if ((checksumAddress & 0x000F) == 0x000A)
{
int realAddress = checksumAddress + 2;
Console.WriteLine(info + " detected checksumAddress: " + realAddress.ToString("X8"));
}
checksumAddress += 2;
found = true;
}
}
}