From cb26b3cba6a64989f17e6f1282dca1bf8e42cc08 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 3 Aug 2020 00:30:32 -0700 Subject: movabs/offset --- src/long_mode/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 18b9f7b..6ff6ac9 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -5799,9 +5799,7 @@ fn read_operands>(decoder: &InstDecoder, mut bytes_iter: T, unsafe { unreachable_unchecked() } } }; - let _addr_width = if instruction.prefixes.address_size() { 4 } else { 8 }; - // stupid RCT thing: - let addr_width = if instruction.prefixes.address_size() { 2 } else { 4 }; + let addr_width = if instruction.prefixes.address_size() { 4 } else { 8 }; let imm = read_num(&mut bytes_iter, addr_width)?; *length += addr_width; instruction.modrm_rrr = @@ -5825,9 +5823,7 @@ fn read_operands>(decoder: &InstDecoder, mut bytes_iter: T, unsafe { unreachable_unchecked() } } }; - let _addr_width = if instruction.prefixes.address_size() { 4 } else { 8 }; - // stupid RCT thing: - let addr_width = if instruction.prefixes.address_size() { 2 } else { 4 }; + let addr_width = if instruction.prefixes.address_size() { 4 } else { 8 }; let imm = read_num(&mut bytes_iter, addr_width)?; *length += addr_width; instruction.disp = imm; -- cgit v1.1