about summary refs log tree commit diff stats
path: root/src/miasm/arch/mep/disasm.py
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-10-14 09:09:29 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-10-14 09:09:29 +0000
commit579cf1d03fb932083e6317967d1613d5c2587fb6 (patch)
tree629f039935382a2a7391bce9253f6c9968159049 /src/miasm/arch/mep/disasm.py
parent51c15d3ea2e16d4fc5f0f01a3b9befc66b1f982e (diff)
downloadfocaccia-miasm-579cf1d03fb932083e6317967d1613d5c2587fb6.tar.gz
focaccia-miasm-579cf1d03fb932083e6317967d1613d5c2587fb6.zip
Convert to src-layout ta/nix
Diffstat (limited to 'src/miasm/arch/mep/disasm.py')
-rw-r--r--src/miasm/arch/mep/disasm.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/miasm/arch/mep/disasm.py b/src/miasm/arch/mep/disasm.py
new file mode 100644
index 00000000..0260c01d
--- /dev/null
+++ b/src/miasm/arch/mep/disasm.py
@@ -0,0 +1,23 @@
+# Toshiba MeP-c4 - miasm disassembly engine
+# Guillaume Valadon <guillaume@valadon.net>
+
+from miasm.core.asmblock import disasmEngine
+from miasm.arch.mep.arch import mn_mep
+
+
+class dis_mepb(disasmEngine):
+    """MeP miasm disassembly engine - Big Endian
+
+       Notes:
+           - its is mandatory to call the miasm Machine
+    """
+
+    attrib = "b"
+
+    def __init__(self, bs=None, **kwargs):
+        super(dis_mepb, self).__init__(mn_mep, self.attrib, bs, **kwargs)
+
+
+class dis_mepl(dis_mepb):
+    """MeP miasm disassembly engine - Little Endian"""
+    attrib = "l"