diff options
| author | serpilliere <devnull@localhost> | 2011-10-14 09:26:08 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2011-10-14 09:26:08 +0200 |
| commit | a59442d5fd3f502d45dac5ecb53db96fc3f6f2a2 (patch) | |
| tree | abda287347716df486c7f97de89f36599ea28ee1 /miasm/expression/expression.py | |
| parent | 2e342567de048671f1ded0e87040e0e8121b69ab (diff) | |
| download | focaccia-miasm-a59442d5fd3f502d45dac5ecb53db96fc3f6f2a2.tar.gz focaccia-miasm-a59442d5fd3f502d45dac5ecb53db96fc3f6f2a2.zip | |
add float mnemo
Diffstat (limited to 'miasm/expression/expression.py')
| -rw-r--r-- | miasm/expression/expression.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/miasm/expression/expression.py b/miasm/expression/expression.py index 015dd651..e5ea8eda 100644 --- a/miasm/expression/expression.py +++ b/miasm/expression/expression.py @@ -18,10 +18,6 @@ from numpy import uint8, uint16, uint32, uint64, int8, int16, int32, int64 tip = 'tip' - -float_stack = 'float_stack' -float_stack_ptr = 'float_stack_ptr' - def slice_rest(size, start, stop): if start >=size or stop > size: raise 'bad slice rest %s %s %s'%(str(size), str(start), str(stop)) if start == stop: return [(0,size)] @@ -538,7 +534,7 @@ class ExprOp(Expr): return "%s(%s, %s)"%(self.op, self.args[0].toC(), self.args[1].toC()) elif self.op.startswith("fcom"): return "%s(%s, %s)"%(self.op, self.args[0].toC(), self.args[1].toC()) - elif self.op.startswith("fadd"): + elif self.op in ["fadd", "fdiv"]: return "%s(%s, %s)"%(self.op, self.args[0].toC(), self.args[1].toC()) else: print self.op |