comparison python/hexutil.py @ 295:917eab04b8b7

Added disasm
author Windel Bouwman
date Thu, 28 Nov 2013 21:10:32 +0100
parents 7b38782ed496
children a78b41ff6ad2
comparison
equal deleted inserted replaced
294:e89cca5779b0 295:917eab04b8b7
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 import sys 3 import sys
4 import argparse 4 import argparse
5 from hexfile import HexFile 5 from utils import HexFile
6 6
7 def hex2int(s): 7 def hex2int(s):
8 if s.startswith('0x'): 8 if s.startswith('0x'):
9 s = s[2:] 9 s = s[2:]
10 return int(s, 16) 10 return int(s, 16)