From f3d0abbec8c8a36127b4b5a30472f6d8bf910a29 Mon Sep 17 00:00:00 2001 From: IridiumXOR Date: Tue, 28 Apr 2020 21:53:46 +0200 Subject: Fix bug 'ins' MIPS opcode --- miasm/arch/mips32/sem.py | 8 ++++---- 1 file 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, [] -- cgit 1.4.1