From 16b46b4ebebe2584512daf664ff4753fd9d0159b Mon Sep 17 00:00:00 2001 From: serpilliere Date: Fri, 12 Sep 2014 00:35:25 +0200 Subject: mips: add mnemo; fix irdst --- miasm2/arch/mips32/sem.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'miasm2/arch/mips32/sem.py') diff --git a/miasm2/arch/mips32/sem.py b/miasm2/arch/mips32/sem.py index cc51d2af..8f8efdf4 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)) @@ -427,6 +434,7 @@ mnemo_func = { "b" : l_b, "lbu" : lbu, "lhu" : lhu, + "lb" : lb, "beq" : beq, "bgez" : bgez, "bltz" : bltz, -- cgit 1.4.1