diff options
| author | serpilliere <devnull@localhost> | 2014-09-12 00:35:25 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2014-09-12 00:35:25 +0200 |
| commit | 16b46b4ebebe2584512daf664ff4753fd9d0159b (patch) | |
| tree | 0343e8428bcbe9fa62bc19dc7da917d0990a4384 /miasm2/arch/mips32/sem.py | |
| parent | 56db4204751bcda47b6a653f6f2347b254b976d9 (diff) | |
| download | miasm-16b46b4ebebe2584512daf664ff4753fd9d0159b.tar.gz miasm-16b46b4ebebe2584512daf664ff4753fd9d0159b.zip | |
mips: add mnemo; fix irdst
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/mips32/sem.py | 8 |
1 files changed, 8 insertions, 0 deletions
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, |