about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--example/jitter/x86_32.py3
-rw-r--r--miasm/jitter/jitload.py10
2 files changed, 11 insertions, 2 deletions
diff --git a/example/jitter/x86_32.py b/example/jitter/x86_32.py
index c2273b69..cee9241a 100644
--- a/example/jitter/x86_32.py
+++ b/example/jitter/x86_32.py
@@ -29,5 +29,4 @@ myjit.push_uint32_t(0x1337beef)
 
 myjit.add_breakpoint(0x1337beef, code_sentinelle)
 
-myjit.init_run(run_addr)
-myjit.continue_run()
+myjit.run(run_addr)
diff --git a/miasm/jitter/jitload.py b/miasm/jitter/jitload.py
index e8277e34..017dbde3 100644
--- a/miasm/jitter/jitload.py
+++ b/miasm/jitter/jitload.py
@@ -413,6 +413,16 @@ class Jitter(object):
 
         return None
 
+
+    def run(self, addr):
+        """
+        Launch emulation
+        @addr: (int) start address
+        """
+        self.init_run(addr)
+        return self.continue_run()
+
+
     def init_stack(self):
         self.vm.add_memory_page(
             self.stack_base,