about summary refs log tree commit diff stats
path: root/example/jitter/msp430.py
diff options
context:
space:
mode:
authorAymeric Vincent <aymeric.vincent@cea.fr>2015-10-27 21:27:27 +0100
committerAymeric Vincent <aymeric.vincent@cea.fr>2015-10-27 21:27:27 +0100
commit5dbf046bbe07a28485a84eca14405d271d1ea7fa (patch)
tree5cabdd356882f4d2606a02cc0ed468894f68a586 /example/jitter/msp430.py
parentfb32efb74e2dc1077586a2214de558db6940b70b (diff)
downloadmiasm-5dbf046bbe07a28485a84eca14405d271d1ea7fa.tar.gz
miasm-5dbf046bbe07a28485a84eca14405d271d1ea7fa.zip
In interactive use, allow C-like prefixes to choose the base of integers
Use Python's int(s, 0) to allow string "s" to specify its base where
addresses and offsets can be supplied.
This change makes the situation homogeneous among the various examples and
interactive usage.
Diffstat (limited to 'example/jitter/msp430.py')
-rw-r--r--example/jitter/msp430.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/jitter/msp430.py b/example/jitter/msp430.py
index d752ef8c..eb327e05 100644
--- a/example/jitter/msp430.py
+++ b/example/jitter/msp430.py
@@ -31,7 +31,7 @@ parser.add_argument("addr",
 machine = Machine("msp430")
 
 def jit_msp430_binary(args):
-    filepath, entryp = args.binary, int(args.addr, 16)
+    filepath, entryp = args.binary, int(args.addr, 0)
     myjit = machine.jitter(jit_type = args.jitter)
     myjit.init_stack()