about summary refs log tree commit diff stats
path: root/miasm/tools/emul_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm/tools/emul_helper.py')
-rwxr-xr-xmiasm/tools/emul_helper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm/tools/emul_helper.py b/miasm/tools/emul_helper.py
index a36cba85..66521bf3 100755
--- a/miasm/tools/emul_helper.py
+++ b/miasm/tools/emul_helper.py
@@ -659,7 +659,7 @@ def digest_allbloc_instr(all_bloc, segm_to_do = {}):
     return instrs
 
 
-def x86_machine():
+def x86_machine(mem_read_wrap = None, mem_write_wrap = None):
     machine = eval_abs({esp:init_esp, ebp:init_ebp, eax:init_eax, ebx:init_ebx, ecx:init_ecx, edx:init_edx, esi:init_esi, edi:init_edi,
                         cs:ExprInt(uint32(9)),
                         zf :  init_zf,  nf :  init_nf, pf : init_pf,
@@ -674,8 +674,8 @@ def x86_machine():
                         #my_ret_addr:my_ret_addri
                         
                         },
-                       #mem_read_wrap,
-                       #mem_write_wrap,
+                       mem_read_wrap,
+                       mem_write_wrap,
                        
                        )
     return machine