From e6928294fd9eec219430a610ffe0ffb9d2cd7d23 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 23 Jun 2024 10:50:00 -0700 Subject: actually use new can_lock in 32b and 16b modes --- src/real_mode/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/real_mode/mod.rs') diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs index 87f2ff3..2a3723f 100644 --- a/src/real_mode/mod.rs +++ b/src/real_mode/mod.rs @@ -6663,7 +6663,7 @@ fn read_with_annotations< self.read_operands(decoder, words, instruction, record, sink)?; if self.check_lock { - if (instruction.opcode as u32) < 0x1000 || !instruction.operands[0].is_memory() { + if !instruction.opcode.can_lock() || !instruction.operands[0].is_memory() { return Err(DecodeError::InvalidPrefixes); } } -- cgit v1.1