ir491@sdcc6.ucsd.EDU (ir491) (09/14/87)
I am looking for a public domain MS/PCDOS utility that will convert a binary file to a Hex file that can be used with an EPROM programmer. Can you point me to one, or provide me with a uuencoded version via email? Thanks. Harry Bluestein UCSD Medical Center San Diego, CA 92103 arpa: ir491@sdcc6.UCSD.edu uucp: {ucbvax,ihnp4}!sdcsvax!sdcc6!ir491
tr@wind.bellcore.com (tom reingold) (09/15/87)
In article <3346@sdcc6.ucsd.EDU> ir491@sdcc6.ucsd.EDU (ir491) writes: $ I am looking for a public domain MS/PCDOS utility that will convert $ a binary file to a Hex file that can be used with an EPROM programmer. $ Can you point me to one, or provide me with a uuencoded version via $ email? Thanks. $ $ $ Harry Bluestein $ UCSD Medical Center $ San Diego, CA 92103 $ $ arpa: ir491@sdcc6.UCSD.edu $ uucp: {ucbvax,ihnp4}!sdcsvax!sdcc6!ir491 I probably need some context to understand your query full, but this is off the cuff ... #include <stdio.h> main() { int c; while ((c=getchar()) != EOF) printf("%x", c); } Name: Tom Reingold Disclaimer: Nothing I say is an opinion. INTERNET: tr@bellcore.bellcore.com UUCP: <backbone>!bellcore!tr
kai@ihlpa.ATT.COM (Irwin) (09/15/87)
In article <3346@sdcc6.ucsd.EDU>, ir491@sdcc6.ucsd.EDU (ir491) writes: > I am looking for a public domain MS/PCDOS utility that will convert > a binary file to a Hex file that can be used with an EPROM programmer. > Can you point me to one, or provide me with a uuencoded version via > email? Thanks. > > Harry Bluestein > UCSD Medical Center > San Diego, CA 92103 I like to know as well, and I wouldn't mind a utility to convert hex to Intel (asciized) hex, I know its easy but I'm too lazy to write it myself! Ken A. Irwin AT&T Bell Labs, Naperville IHP 1A332 (312) 416-4485 ...!ihlpa!kai
mrk@gvgspd.UUCP (Michael R. Kesti) (09/15/87)
In article <2497@bellcore.bellcore.com> tr@wind.UUCP (tom reingold) writes: >I probably need some context to understand your query >full, but this is off the cuff ... > >#include <stdio.h> >main() >{ > int c; > while ((c=getchar()) != EOF) > printf("%x", c); >} This is close, but bear in mind that HEX file formats typically include such mundane stuff such as record marks, address fields, byte counts, and checksums. I have found that a good source of documentation for these formats is the manual from our Data I/O 29B programmer. Armed with this information and Tom's program fragment, writing this function should not be too much trouble. -- =================================================================== Michael Kesti Grass Valley Group, Inc. P.O. Box 1114 Grass Valley, CA 95945 UUCP: ...!tektronix!gvgpsa!gvgspd!mrk
onn@utgpu.UUCP (09/17/87)
There have been several requests for this. Anyone interested in a program to convert binary files to Intel Load File Format (Ascii hex) please reply to me via email. I have such a beast, taken from a PD assembler I am writing. Brian. -------------- Brian A. Onn University of Toronto Computing Services Erindale College ...{utzoo, ihnp4, decvax}!utcs!onn -- -------------- Brian A. Onn University of Toronto Computing Services Erindale College ...{utzoo, ihnp4, decvax}!utcs!onn
del@pilchuck.Data-IO.COM (Erik Lindberg) (09/18/87)
Sometimes I am amazed at how much NULL traffic is generated by someone's request for information or software. Is it just post-mania, or is BBS chatter syndrome infecting the usenet? Anyway, here is a simple little program which can be used on any machine with a C compiler and redirectable output (even 8 bitters!) and will work with any of the multitude of Data I/O programmers I am aware of, and most likely any programmer by any manufacturer, for that matter, since I think they all support this format (Intel Hex format). I don't deal with byte order here, but that should only be a concern if you are doing word-wide programming on a gang-banger (in which case, just swap the devices in their sockets, if necessary :-) And don't forget Intel Hex format only has a 16 bit address field, so no files > 64k are allowed. # This is a shell archive. # Remove everything above and including the cut line. # Then run the rest of the file through sh. #----cut here-----cut here-----cut here-----cut here----# #!/bin/sh # shar: Shell Archiver # Run the following text with /bin/sh to create: # format83.uu # format83.c # read.me # This archive created: Thu Sep 17 16:50:15 1987 # By: Erik Lindberg echo shar: extracting format83.uu sed 's/^XX//' << \HUGS > format83.uu XXbegin 666 format83.com XXMZW*0OPH ,\FL"L!T'SP@=!L\"707+#!X#I@[QW,)D??G<@0#R'/ANL$ ZR2) XXM#O0"P[HL >L:BQZ( ($_JE5U#8O$*\-V!SLFC@!W <.ZF "T"<TAN $ 4.@ XXM +0PS2$\ G()B^R*1@*T3,TA_S:2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<B!"<FEG:'0 00 XXM XXM #0I3=&%C:R!/=F5R9FQO=PT*) T*3F]T(&5N;W5G XXM:"!M96UO<GD-"B0-"D)A9"!S=&%C:R!S:7IE('!A<F%M971E<@T*) T*1$]3 XXM(#$N>'@@;F]T('-U<'!O<G1E9 T*) T*3VYL>2 S,B!A<F=S(&%L;&]W960- XXM"B0-"DY53$P@9G5N8W1I;VX@<&]I;G1E<@T*) T*1FQO871I;F<@<&]I;G0@ XXM;F]T(&QO861E9 T*)')B $5R<F]R(&]N(&]P96X@;V8@9FEL92 E<PH "@ Z XXM,# P,# P,#%&1@H #!8 #!X M "L ( C T() @J"# (<P E &, 9 !I XXM &( ;P!U %@ > !P &8 90!% &< 1P!N '()J@FP"<H)R@D;"B *)0I "D0* XXM1 I)"W@,> QK#6L-- \M "L ( $$ ! 0@ ! XXM $ !& ( 0 & P ! 0@ $ $ XXM XXM XXM XXM XXM ! @]@( /8" (" XXM @(" @(" @,# P,# @(" @(" @(" @(" @(" @("!4! 0$! 0$! 0$! 0$! XXM0(" @(" @(" @(! 0$! 0$! &!@8&!@8$! 0$! 0$! 0$! 0$! 0$! 0$!! XXM0$! 0$ H*"@H*"@@(" @(" @(" @(" @(" @(" @($! 0$ " XXM XXM XX= XX XXend HUGS if test 11975 -ne "`wc -c format83.uu`" then echo shar: error transmitting format83.uu '(should have been 11975 characters)' fi echo shar: uudecoding format83.com uudecode format83.uu echo shar: extracting format83.c sed 's/^XX//' << \HUGS > format83.c XX/*_ format83.c Thu Sep 17 1987 Modified by: Erik Lindberg */ XX/* XX This program is released to the public domain. It can be XX used for any purpose whatsoever. If you can get some poor XX sucker to pay money for it, tell me your secret. XX XX Prints a file to stdout in Intel HEX 83 format. I wrote this XX to be easy to understand, modify, and *portable*. If you want XX elegant, you can get there from here. XX*/ XX XX#include <stdio.h> XX XX#define REC 0x10 /* Size of a record. */ XX XXchar *line, buffer[128]; XXFILE *infile; XX XXextern char hex(); XX XXmain(argc,argv) XXint argc; XXchar *argv[]; XX{ XX int c=1, address=0; XX int sum, i; XX i=0; XX if (!(infile = fopen(argv[++i],"rb"))) { XX fprintf(stderr, "Error on open of file %s\n",argv[i]); XX exit(1); XX } XX XX while (c != EOF) { XX sum = 0; XX line = buffer; XX for (i=0; i<REC && (c=getc(infile)) != EOF; i++) { XX *line++ = hex(c>>4); XX *line++ = hex(c); XX sum += c; /* Checksum each character. */ XX } XX if (i) { XX sum += address >> 8; /* Checksum high address byte.*/ XX sum += address & 0xff; /* Checksum low address byte.*/ XX sum += i; /* Checksum record byte count.*/ XX line = buffer; /* Now output the line! */ XX putchar(':'); XX puthex(i,2); /* Byte count. */ XX puthex(address,4); /* Do address and increment */ XX address += i; /* by bytes in record. */ XX puthex(0,2); /* Record type. */ XX for(i*=2;i;i--) /* Then the actual data. */ XX putchar(*line++); XX puthex(0-sum,2); /* Checksum is 1byte 2's comp.*/ XX printf("\n"); XX } XX } XX printf(":00000001FF\n"); /* End record. */ XX} XX XX/* Return ASCII hex character for binary value. */ XX XXchar hex(c) XXint c; XX{ XX if((c &= 0x000f)<10) XX c += '0'; XX else XX c += 'A'-10; XX return((char) c); XX} XX XX/* Put specified number of digits in ASCII hex. */ XX XXputhex(val,digits) XXint val,digits; XX{ XX if (--digits) XX puthex(val>>4,digits); XX putchar(hex(val & 0x0f)); XX} HUGS if test 1836 -ne "`wc -c format83.c`" then echo shar: error transmitting format83.c '(should have been 1836 characters)' fi echo shar: extracting read.me sed 's/^XX//' << \HUGS > read.me XX This program will read a binary file and output in Intel ASCII Hex XXformat to standard out. This is one of the most common translation formats XXfor transfer to emulators and PROM programmers. This format can also be read XXdirectly by the debugger supplied with both MSDOS and CPM if the extension XXis ".HEX". I.E. if you use "format83 filename.bin> filename.hex" and then XXload filename.hex with the debugger, you will be looking at your original XXbinary file. If you modify the program, this is an excellent way to test XXyour modifications. XX This program was not written to be efficient, tricky, or elegant. XXIt was written to be easily understood, modified, and/or ported to any XXsystem, including 8 bit systems with C compilers. Oh yeah, and it also XXwas written because it was usefull. It is free and I am releasing it to XXthe public domain. You can do whatever you want with it. If you can get XXsomeone to pay you for it, you have my blessing. XX This program will not solve all your problems! One of the trickiest XXparts about using the serial port of your garden variety PC is getting the XXcabling and parameters right on the serial port. I have included a small XXhex file (contents "hello world\n" :-) which I suggest you use to verify XXyour connection with. Until you can "copy test.hex com1:" without getting XXerrors, do not expect to be able to transfer anything meaningfull to your XXprogrammer. This program *does* work, I use it exclusively for tranferring XXbinary files to the Data I/O programmers I use here, but it was written by XXme personally for my own use and is not supported by Data I/O. If you do use XXthis with a Data I/O programmer, select transfer format 83 before starting. XXIf you don't rename this program, it will impossible for you to forget :-) HUGS if test 1754 -ne "`wc -c read.me`" then echo shar: error transmitting read.me '(should have been 1754 characters)' fi # End of shell archive exit 0 -- del (Erik Lindberg) uw-beaver!tikal!pilchuck!del