about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorw4kfu <gw4kfu@gmail.com>2022-05-23 21:17:04 +0200
committerw4kfu <gw4kfu@gmail.com>2022-05-23 21:17:04 +0200
commite7f84cb6fd5d1bdbe82c16dd3abeefbd20011fc3 (patch)
treeab495cb2d2eef4777afdbc3f714dd4f4fdeaa5e7
parent7ee593d00488e75dadb6edad7ffe5a7dcf6b155d (diff)
downloadmiasm-e7f84cb6fd5d1bdbe82c16dd3abeefbd20011fc3.tar.gz
miasm-e7f84cb6fd5d1bdbe82c16dd3abeefbd20011fc3.zip
[x86] add missing Expression EIP when using address-size prefix for RIP-relative addressing
-rw-r--r--miasm/arch/x86/regs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/arch/x86/regs.py b/miasm/arch/x86/regs.py
index 1fc2009c..dc0b9264 100644
--- a/miasm/arch/x86/regs.py
+++ b/miasm/arch/x86/regs.py
@@ -26,7 +26,7 @@ regs16_str = ["AX", "CX", "DX", "BX", "SP", "BP", "SI", "DI"] + \
 regs16_expr = [ExprId(x, 16) for x in regs16_str]
 
 regs32_str = ["EAX", "ECX", "EDX", "EBX", "ESP", "EBP", "ESI", "EDI"] + \
-    ["R%dD" % (i + 8) for i in range(8)]
+    ["R%dD" % (i + 8) for i in range(8)] + ["EIP"]
 regs32_expr = [ExprId(x, 32) for x in regs32_str]
 
 regs64_str = ["RAX", "RCX", "RDX", "RBX", "RSP", "RBP", "RSI", "RDI",