1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-01 22:50:35 +00:00

Fix format overwrite test

A SOS binary had situation were an instruction was being reformatted
as inline data by an extension script.  The code that was supposed
to detect and prevent this had a bug that caused it to only look at
the first byte.  The resulting confusion caused the program to crash.

(issue #150)
This commit is contained in:
Andy McFadden 2023-05-10 10:05:00 -07:00
parent 7ebf976279
commit 2f603b69c3

View File

@ -1171,7 +1171,7 @@ namespace SourceGen {
" (" + mAnalyzerTags[i] + ")");
return false;
}
if (mAnattribs[offset].IsInstruction) {
if (mAnattribs[i].IsInstruction) {
LogW(offset, "SIDF rej: not for use with instructions");
return false;
}