about summary refs log tree commit diff stats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/__init__.py8
-rw-r--r--arch/x86.py1
2 files changed, 7 insertions, 2 deletions
diff --git a/arch/__init__.py b/arch/__init__.py
index 4943749..2926d20 100644
--- a/arch/__init__.py
+++ b/arch/__init__.py
@@ -1,7 +1,11 @@
 from .arch import Arch
 from . import x86
 
-"""A dictionary containing all supported architectures at their names."""
+"""A dictionary containing all supported architectures at their names.
+
+The arch names (keys) should be compatible with the string returned from
+`platform.machine()`.
+"""
 supported_architectures: dict[str, Arch] = {
-    "X86": x86.ArchX86(),
+    "x86_64": x86.ArchX86(),
 }
diff --git a/arch/x86.py b/arch/x86.py
index 88e6d1a..776291d 100644
--- a/arch/x86.py
+++ b/arch/x86.py
@@ -34,6 +34,7 @@ regnames = [
 # A dictionary mapping aliases to standard register names.
 regname_aliases = {
     'PC': 'RIP',
+    'NF': 'SF',   # negative flag == sign flag in Miasm?
 }
 
 def decompose_rflags(rflags: int) -> dict[str, int]: