Adds comment for LEA and segment registers

LEA doesn't give you the result with segment register applied to it.
Adds a comment to OpDispatcher to make it more clear
This commit is contained in:
Ryan Houdek committed 2021-04-05 21:28:25 -07:00
1 parent 8319a85524
commit 4f276aae82
1 file changed
+1
@@ -130,6 +130,7 @@ void OpDispatchBuilder::ThunkOp(OpcodeArgs) {
}
void OpDispatchBuilder::LEAOp(OpcodeArgs) {
// LEA specifically ignores segment prefixes
if (CTX->Config.Is64BitMode) {
uint32_t DstSize = X86Tables::DecodeFlags::GetOpAddr(Op->Flags, 0) == X86Tables::DecodeFlags::FLAG_OPERAND_SIZE_LAST ? 2 :
X86Tables::DecodeFlags::GetOpAddr(Op->Flags, 0) == X86Tables::DecodeFlags::FLAG_WIDENING_SIZE_LAST ? 8 : 4;