diff options
| author | IridiumXOR <oliveriandrea@gmail.com> | 2020-04-28 21:53:46 +0200 |
|---|---|---|
| committer | IridiumXOR <oliveriandrea@gmail.com> | 2020-04-28 21:53:46 +0200 |
| commit | f3d0abbec8c8a36127b4b5a30472f6d8bf910a29 (patch) | |
| tree | 086d9ca1071679933c7e346928152a98d7153469 | |
| parent | f6e487a73b36228bb07e5476b6050c96ff717e6b (diff) | |
| download | miasm-f3d0abbec8c8a36127b4b5a30472f6d8bf910a29.tar.gz miasm-f3d0abbec8c8a36127b4b5a30472f6d8bf910a29.zip | |
Fix bug 'ins' MIPS opcode
| -rw-r--r-- | miasm/arch/mips32/sem.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm/arch/mips32/sem.py b/miasm/arch/mips32/sem.py index 5fc491a7..35fc5315 100644 --- a/miasm/arch/mips32/sem.py +++ b/miasm/arch/mips32/sem.py @@ -327,12 +327,12 @@ def ins(ir, instr, a, b, c, d): my_slices = [] if pos != 0: - my_slices.append((a[:pos], 0, pos)) + my_slices.append(a[:pos]) if l != 0: - my_slices.append((b[:l], pos, pos+l)) + my_slices.append(b[:l]) if pos + l != 32: - my_slices.append((a[pos+l:], pos+l, 32)) - r = m2_expr.ExprCompose(my_slices) + my_slices.append(a[pos+l:]) + r = m2_expr.ExprCompose(*my_slices) e.append(m2_expr.ExprAssign(a, r)) return e, [] |