Ignore v prefix unless it's the 1st string

This commit is contained in:
de4dot 2019-08-10 08:26:18 +02:00
parent 97c640a33c
commit 6cb5129f11
4 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ namespace Generator.Formatters.Gas {
firstStringIndex = uint.MaxValue;
}
else {
si = stringsTable.GetIndex(s, ignoreVPrefix: false, out hasVPrefix);
si = stringsTable.GetIndex(s, ignoreVPrefix: true, out hasVPrefix);
if (hasVPrefix)
throw new InvalidOperationException();
}

View File

@ -87,7 +87,7 @@ namespace Generator.Formatters.Intel {
firstStringIndex = uint.MaxValue;
}
else {
si = stringsTable.GetIndex(s, ignoreVPrefix: false, out hasVPrefix);
si = stringsTable.GetIndex(s, ignoreVPrefix: true, out hasVPrefix);
if (hasVPrefix)
throw new InvalidOperationException();
}

View File

@ -87,7 +87,7 @@ namespace Generator.Formatters.Masm {
firstStringIndex = uint.MaxValue;
}
else {
si = stringsTable.GetIndex(s, ignoreVPrefix: false, out hasVPrefix);
si = stringsTable.GetIndex(s, ignoreVPrefix: true, out hasVPrefix);
if (hasVPrefix)
throw new InvalidOperationException();
}

View File

@ -87,7 +87,7 @@ namespace Generator.Formatters.Nasm {
firstStringIndex = uint.MaxValue;
}
else {
si = stringsTable.GetIndex(s, ignoreVPrefix: false, out hasVPrefix);
si = stringsTable.GetIndex(s, ignoreVPrefix: true, out hasVPrefix);
if (hasVPrefix)
throw new InvalidOperationException();
}