diff options
Diffstat (limited to 'miasm2/arch/x86/sem.py')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index cd456f7b..cc227819 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -597,22 +597,6 @@ def shrd(ir, instr, a, b, c): return _shift_tpl(">>>", ir, instr, a, b, c, "<<<") -def sal(ir, instr, a, b): - e = [] - shifter = get_shift(a, b) - c = m2_expr.ExprOp('a<<', a, shifter) - new_cf = (a >> (m2_expr.ExprInt_from(a, a.size) - shifter))[:1] - e.append(m2_expr.ExprAff(cf, m2_expr.ExprCond(shifter, - new_cf, - cf) - ) - ) - e += update_flag_znp(c) - e.append(m2_expr.ExprAff(of, c.msb() ^ new_cf)) - e.append(m2_expr.ExprAff(a, c)) - return e, [] - - def shl(ir, instr, a, b): return _shift_tpl("<<", ir, instr, a, b, left=True) @@ -3623,7 +3607,7 @@ def ps_rl_ll(ir, instr, a, b, op, size): e_do = [] slices = [] for i in xrange(0, a.size, size): - slices.append((m2_expr.ExprOp(op,a[i:i + size], count[:size]), + slices.append((m2_expr.ExprOp(op, a[i:i + size], count[:size]), i, i + size)) e.append(m2_expr.ExprAff(a[0:a.size], m2_expr.ExprCompose(slices))) e_do.append(m2_expr.ExprAff(ir.IRDst, lbl_next)) @@ -3995,7 +3979,7 @@ mnemo_func = {'mov': mov, 'rcr': rcr, 'sar': sar, 'shr': shr, - 'sal': sal, + 'sal': shl, 'shl': shl, 'shld': shld, 'cmc': cmc, |