From 4bb189250b99494b292fb24717ee90f3178cbde9 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 1 Dec 2019 15:40:54 -0800 Subject: movs on non-byte operands --- src/lib.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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>(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; -- cgit v1.1