about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2015-10-22 20:48:51 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-10-23 10:53:51 +0200
commit539f569e0f53f22c1bb490ca2d7d368e66ee3b1b (patch)
tree69b7281c94fd92cac95b527e3a3cce83d9f04524
parentfb3c34d1ac3d7ef71b4f6c50600e1f33a8f2fe99 (diff)
downloadmiasm-539f569e0f53f22c1bb490ca2d7d368e66ee3b1b.tar.gz
miasm-539f569e0f53f22c1bb490ca2d7d368e66ee3b1b.zip
Arch/x86/sem: raise error on missing mnemo
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/sem.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index d4274755..dd9ee472 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -4069,6 +4069,9 @@ class ir_x86_16(ir):
                     args[i] = m2_expr.ExprMem(m2_expr.ExprOp('segm', my_ss,
                                                              a.arg), a.size)
 
+        if not instr.name.lower() in mnemo_func:
+            raise NotImplementedError("Mnemonic %s not implemented" % instr.name)
+
         instr_ir, extra_ir = mnemo_func[
             instr.name.lower()](self, instr, *args)
         self.mod_pc(instr, instr_ir, extra_ir)