MAKEHEX.COM -- utility to convert binary files to Intel .HEX format for MS-DOS or PC-DOS systems. Purpose -- allows the conversion of files ( 1 byte to 65280 bytes ) into Intel .HEX format so that they can be transmitted as ASCII text when you cannot use binary transfers. (The file size limit is due to the fact that I determined the .HEX file format by reverse engineering existing .HEX files and none of them used more than one segment. I had no way to determine what the format is for a .HEX file that spans more than one segment. IN that one segment, the first 256 bytes are reserved for the PSP of a .COM programme so the file size is limited to 65536 minus 256.) Usage: -- (a) to just view a conversion, type: MAKEHEX filename where "filename" is the name of a file within the size range specified above. MAKEHEX will display the file size in both decimal and hexadecimal and then display the HEX output to the screen. This is a good place to check for errors. (See "ERRORS" below.) (b) to convert a file for transmission, use MAKEHEX filename >newfile.HEX where "filename" is the name of the file to convert and "newfile" is the new name for the .HEX file MAKEHEX will send the conversion to the new file but will still report the size on the screen. The new file will be in valid Intel .HEX format if its size was in range. Note the file size reported, especially the hexadecimal size. (c) create a DEBUG script: N newfile.HEX L RCX xxxx N filename W Q replacing the "xxxx" above with the HEXADECIMAL file size reported by MAKEHEX and replacing "newfile" and "filename" with the appropriate filenames. The newfile must have a .HEX extension to be converted by DEBUG. If the old file had an .EXE extension, use some other extension (.XEX perhaps) in the DEBUG script and rename the file to have an .EXE extension after you exit from DEBUG as DEBUG cannot write files with .EXE or .HEX extensions. (The fact that DEBUG refused to write a file with a .HEX extension is what prompted me to see what it would do when *reading* a *.HEX file.) !!!!! ***** WARNING: DO NOT TRY TO SHORTEN THE SCRIPT FILE BY TRYING TO USE: DEBUG newfile.HEX