CVS: python ihex2titext.py,1.1,1.2 titext2ihex.py,1.1,1.2
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24430/python
Modified Files:
ihex2titext.py titext2ihex.py
Log Message:
possibility to pass filename as parameter instead of stdin only
Index: ihex2titext.py
===================================================================
RCS file: /cvsroot/mspgcc/python/ihex2titext.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- ihex2titext.py 3 Oct 2005 20:46:37 -0000 1.1
+++ ihex2titext.py 28 Dec 2005 20:37:57 -0000 1.2
@@ -13,6 +13,9 @@
import sys
data = memory.Memory()
+if len(sys.argv) > 1:
+ data.loadFile(sys.argv[1])
+else:
data.loadIHex(sys.stdin) #intel-hex
for segment in data:
#~ hexdump((segment.startaddress, segment.data)) #print a hex display
Index: titext2ihex.py
===================================================================
RCS file: /cvsroot/mspgcc/python/titext2ihex.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- titext2ihex.py 9 Jul 2004 23:19:45 -0000 1.1
+++ titext2ihex.py 28 Dec 2005 20:37:57 -0000 1.2
@@ -13,6 +13,9 @@
import sys
data = memory.Memory() #prepare downloaded data
+if len(sys.argv) > 1:
+ data.loadFile(sys.argv[1])
+else:
data.loadTIText(sys.stdin) #TI's format
for segment in data:
#~ hexdump((segment.startaddress, segment.data)) #print a hex display
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click