strip rel16 since we're not going to encounter real mode in running processes on Linux or FreeBSD

This commit is contained in:
mykola2312 2024-07-25 03:40:06 +03:00
parent f81b7f524e
commit 467331c693

View file

@ -40,6 +40,9 @@ class Instruction:
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):
tree = ET.parse(path)