diff options
| author | serpilliere <devnull@localhost> | 2012-06-11 16:02:53 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2012-06-11 16:02:53 +0200 |
| commit | c06d847fb76f807bd6d25cec08ccc01e53a1dc29 (patch) | |
| tree | e5923cb510a8a94b01fe07158763818bd2ee3348 | |
| parent | d9d2a8294a6e305ae01f30bf7cc43fd5bbba2eff (diff) | |
| download | miasm-c06d847fb76f807bd6d25cec08ccc01e53a1dc29.tar.gz miasm-c06d847fb76f807bd6d25cec08ccc01e53a1dc29.zip | |
ia32_arch: mod gst_op_msb
| -rw-r--r-- | miasm/arch/ia32_sem.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/miasm/arch/ia32_sem.py b/miasm/arch/ia32_sem.py index 018d5636..df94e071 100644 --- a/miasm/arch/ia32_sem.py +++ b/miasm/arch/ia32_sem.py @@ -394,8 +394,7 @@ OF(A-B) = ((A XOR D) AND (A XOR B)) < 0 # XXX TODO make default check against 0 or not 0 (same eq as in C) def get_op_msb(a): - cast_int = tab_uintsize[a.get_size()] - return ExprOp('==', ExprInt(cast_int(1)), ExprOp('>>', a, ExprInt(cast_int(a.get_size()-1)))) + return ExprOp('>>', a, ExprInt_from(a, a.get_size()-1)) def update_flag_zf(a): |