aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-12-01 15:40:54 -0800
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit4bb189250b99494b292fb24717ee90f3178cbde9 (patch)
treeae5d41be524b03cda42f32aac3dcae862983a3de /src
parent1fa6de9e53b5c887b0e865eacce65b72b1cb15a4 (diff)
movs on non-byte operands
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 00ec194..24f11f8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3846,11 +3846,8 @@ fn unlikely_operands<T: Iterator<Item=u8>>(mut bytes_iter: T, instruction: &mut
}
OperandCode::Yv_Xv => {
// TODO: repsect prefixes
- // TODO: two memory operands! this is wrong!!!
- instruction.modrm_rrr = RegSpec::rdi();
- instruction.modrm_mmm = RegSpec::rsi();
- instruction.operands[0] = OperandSpec::Deref;
- instruction.operands[1] = OperandSpec::Deref;
+ instruction.operands[0] = OperandSpec::Deref_rdi;
+ instruction.operands[1] = OperandSpec::Deref_rsi;
}
OperandCode::ModRM_0x0f12 => {
instruction.modrm_rrr.bank = RegisterBank::X;