don't count explained matches
This commit is contained in:
1 parent
da0d5dc2a5
commit
a5ef4be6dd
1 file changed
+4
-4
+4
-4
@@ -98,9 +98,6 @@ int main(int argc,char **argv)
|
|||||||
if (l<k) {
|
if (l<k) {
|
||||||
// Ignore matches of no more than 3 bytes,
|
// Ignore matches of no more than 3 bytes,
|
||||||
// since that is the max length of a 6502 instruction
|
// since that is the max length of a 6502 instruction
|
||||||
if (k>2) {
|
|
||||||
matches[k]++;
|
|
||||||
}
|
|
||||||
if (k>2) {
|
if (k>2) {
|
||||||
char similarity_name[MAX_SIZE];
|
char similarity_name[MAX_SIZE];
|
||||||
snprintf(similarity_name,MAX_SIZE,"strings/");
|
snprintf(similarity_name,MAX_SIZE,"strings/");
|
||||||
@@ -121,6 +118,9 @@ int main(int argc,char **argv)
|
|||||||
break;
|
break;
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Otherwise, the match is unexplained.
|
||||||
|
matches[k]++;
|
||||||
|
|
||||||
// Display particularly long matches
|
// Display particularly long matches
|
||||||
printf("$%04X = $%04X :",i,j);
|
printf("$%04X = $%04X :",i,j);
|
||||||
@@ -136,7 +136,7 @@ int main(int argc,char **argv)
|
|||||||
|
|
||||||
for(int i=0;i<MAX_SIZE;i++) {
|
for(int i=0;i<MAX_SIZE;i++) {
|
||||||
if (matches[i])
|
if (matches[i])
|
||||||
printf("%6d matches of %d bytes\n",matches[i],i);
|
printf("%6d unexplained matches of %d bytes\n",matches[i],i);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user