From 8b4de9092947380e8602766f64af4081c89b29d7 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 3 Jul 2021 09:40:56 -0700 Subject: fix incorrect rex prefix selection --- src/long_mode/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 40e7fb2..769706f 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -7000,6 +7000,7 @@ fn read_instr::Address, = 0x40 && nextb < 0x50 { + let b = nextb; if words.offset() >= 15 { return Err(DecodeError::TooLong); } @@ -7007,7 +7008,7 @@ fn read_instr::Address,