From 7b2a586449cec2aae8c013f0c01f71e3dafa7357 Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Fri, 13 Jan 2023 11:34:22 +0100 Subject: [PATCH] parseinstrs: Fix erroneous 16-bit operand size --- parseinstrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parseinstrs.py b/parseinstrs.py index 0485d04..3f8e8f3 100644 --- a/parseinstrs.py +++ b/parseinstrs.py @@ -620,7 +620,7 @@ def encode_mnems(entries): if opcode.rexw: raise Exception(f"unexpected REXW specifier {desc}") opsizes = {8} if "SZ8" in desc.flags else {16, 32, 64} - if opcode.prefix in ("66", "F2", "F3") and "U66" not in desc.flags: + if opcode.prefix in ("NP", "66", "F2", "F3") and "U66" not in desc.flags: opsizes -= {16} if "I66" in desc.flags: opsizes -= {16}