diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-03-14 16:13:59 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-04-18 09:54:48 +0200 |
| commit | 03430408156c6cc04208e8718ca9e32c456b6432 (patch) | |
| tree | cb2383a12391e50328a717cf5026511c8abaa5ff /miasm2/arch/x86/arch.py | |
| parent | 723dd213d49843c35c346d27ff3018a0f2c78c3f (diff) | |
| download | miasm-03430408156c6cc04208e8718ca9e32c456b6432.tar.gz miasm-03430408156c6cc04208e8718ca9e32c456b6432.zip | |
Cpu: lmask is property
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/arch.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py index 29303fdf..be3dbd94 100644 --- a/miasm2/arch/x86/arch.py +++ b/miasm2/arch/x86/arch.py @@ -1065,10 +1065,12 @@ class x86_imm_fix_08(imm_noarg): def decodeval(self, v): return self.ival - def encodeval(self, v): + def encode(self): + v = self.expr2int(self.expr) if v != self.ival: return False - return self.ival + self.value = 0 + return True class x86_08(x86_imm): |