From e5cdc577432dedf599baa3de4f779298f0f810e3 Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Mon, 13 Sep 2021 17:43:12 +0200 Subject: [PATCH] parseinstrs: Minor simplification --- parseinstrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parseinstrs.py b/parseinstrs.py index a31e9a9..aa721ec 100644 --- a/parseinstrs.py +++ b/parseinstrs.py @@ -265,7 +265,7 @@ class InstrDesc(NamedTuple): if "U66" not in self.flags and (ign66 or "I66" in self.flags): extraflags["ign66"] = 1 - if self.imm_size(1 if "SZ8" in self.flags else 8) == 1: + if self.imm_size(4) == 1: extraflags["imm_control"] = flags.imm_control | 1 enc = flags._replace(**extraflags)._encode()