about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2014-09-15 09:39:55 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2014-09-15 09:39:55 +0200
commit3f11ce8a64d4dcc37587c4750ae5381a808695ef (patch)
treec886d5a5c390ddccf8851d8c26886ef342380adb
parent92617fcf9788c647a7524f0f1b3d534136d6618f (diff)
parent16b46b4ebebe2584512daf664ff4753fd9d0159b (diff)
downloadmiasm-3f11ce8a64d4dcc37587c4750ae5381a808695ef.tar.gz
miasm-3f11ce8a64d4dcc37587c4750ae5381a808695ef.zip
merge
-rw-r--r--miasm2/arch/mips32/sem.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/miasm2/arch/mips32/sem.py b/miasm2/arch/mips32/sem.py
index f6445070..e83d9b48 100644
--- a/miasm2/arch/mips32/sem.py
+++ b/miasm2/arch/mips32/sem.py
@@ -60,6 +60,13 @@ def lhu(ir, instr, a, b):
     e.append(ExprAff(a, b.zeroExtend(32)))
     return e, []
 
+
+def lb(ir, instr, a, b):
+    e = []
+    b = ExprMem(b.arg, 8)
+    e.append(ExprAff(a, b.signExtend(32)))
+    return e, []
+
 def beq(ir, instr, a, b, c):
     e = []
     n = ExprId(ir.get_next_break_label(instr))
@@ -435,6 +442,7 @@ mnemo_func = {
     "b" : l_b,
     "lbu" : lbu,
     "lhu" : lhu,
+    "lb" : lb,
     "beq" : beq,
     "bgez" : bgez,
     "bltz" : bltz,