From 467331c69350b0387ed879a074c5502d8df43d48 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Thu, 25 Jul 2024 03:40:06 +0300 Subject: [PATCH] strip rel16 since we're not going to encounter real mode in running processes on Linux or FreeBSD --- genc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/genc.py b/genc.py index f4e98b0..25f5d73 100644 --- a/genc.py +++ b/genc.py @@ -39,6 +39,9 @@ class Instruction: self.opcodes = [] for ins in common.iter("ins"): self.opcodes.append(OpCode(ins, operand_encodings)) + + # remove 16 bit real mode displacement value opcodes + self.opcodes = list(filter(lambda op: op.args != "rel16", self.opcodes)) def parse_file(path):