tweak rejection of common 3 byte sequences

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-24 13:42:15 +09:30
1 parent 4cd170020a
commit cda32d3cb3
1 file changed
+4 -6
+4 -6
View File
@@ -109,18 +109,16 @@ int main(int argc,char **argv)
if (f1[i]==0xb0) break;
if (f1[i]==0x10) break;
if (f1[i+1]==0x85) {
// Single byte followed by STA $xx
// Super common, so can be ignored.
break;
}
// Common 2-byte instructions followed by
// any single byte are very common and not
// copyrightable.
if (f1[i]==0x85) break;
if (f1[i]==0xa9) break;
if (f1[i]==0xc9) break;
// Similarly for random byte before such instructions
if (f1[i+1]==0x85) break;
if (f1[i+1]==0xa9) break;
if (f1[i+1]==0xc9) break;
// Filter out all 3 byte instructions
switch(f1[i]) {