gnupic: Re: smartdasm - a smartened-up disassembly
Subject:
ANN: smartdasm - a smartened-up disassembly
From:
David McNab ####@####.####
Date:
14 Jan 2005 14:13:18 +0000
Message-Id: <41E7D376.5080408@rebirthing.co.nz>
Hi all,
Further to earlier discussions about smartening up disassembly output,
I've hacked together a util called 'smartdasm.py', a python script which:
- runs gpsim, to get a disassembly of a .hex file
- cross-references program addresses with those in the gplink-
generated .map file, if available
- outputs a file filename.dis, complete with processor selection
and processor-specific #include lines, and which clean-assembles with
gpasm
I haven't tested it thoroughly, but it does appear to work accurately
with pic16f and pic18f processor settings (but it only works if the
processor selection is supported by gpsim - eg, 'pic16f876' is ok, but
'pic16f876a' is not).
http://www.freenet.org.nz/pic/smartdasm.py
(Requires Python2.3 or later.)
Have fun with it.
--
Cheers
David