about summary refs log tree commit diff stats
path: root/example/expression/manip_expression1.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/expression/manip_expression1.py')
-rw-r--r--example/expression/manip_expression1.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/example/expression/manip_expression1.py b/example/expression/manip_expression1.py
deleted file mode 100644
index a9ed00e3..00000000
--- a/example/expression/manip_expression1.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from miasm2.expression.expression import *
-
-print """
-Simple expression manipulation demo
-"""
-
-# define 2 ID
-a = ExprId('eax', 32)
-b = ExprId('ebx', 32)
-print a, b
-# eax ebx
-
-# add those ID
-c = ExprOp('+', a, b)
-print c
-# (eax + ebx)
-
-# + automaticaly generates ExprOp('+', a, b)
-c = a + b
-print c
-# (eax + ebx)
-
-# ax is a slice of eax
-ax = a[:16]
-print ax
-# eax[0:16]
-
-# memory deref
-d = ExprMem(c, 32)
-print d
-# @32[(eax + ebx)]