Short: Use favorite ASCII-Editor for HEX data V1.10 Author: stoecker@rcs.urz.tu-dresden.de (Dirk Stoecker) Uploader: stoecker@rcs.urz.tu-dresden.de (Dirk Stoecker) Version: 1.10 Type: util/cli Kurz: Programm, um HEX-Daten mit ASCII Editor zu editieren This program converts data (for example program code) into the hexadecimal data system. This data could be edited with your favorite ASCII text editor. After that you can convert the data back to their old style. So you don't need a special hex editor and you will be able also to delete parts of the file, insert parts and so on. Most hex editors allow only to change given data. Be sure that you know what you are doing! To insert some data into program most time crashes the program, because the internal addresses are now illegal. But the ability to delete data is useful for removing start code from modules, pictures or text. BinHex needs OS 37 (2.0) or later OS versions! USAGE: BinHex BIN/A,HEX/A,MAKEBIN/S,ONLYDATA/S BIN give filename for original data file HEX give filename for hexadecimal data MAKEBIN set program to convert HEX to BIN (else BIN to HEX) ONLYDATA add no ASCII output and no position info to hex data file ROWS give number of rows in one line (1 row = 4 byte) ASMDATA creates a field of ASM-DC.L lines (not convertable back to bin). To make it impossible to overwrite binary data if not wanted use every time one of the BIN or HEX keywords, but they aren't needed!. «BinHex A B» is same as «BinHex A HEX B», but the second is saver. hexadecimal data format: In the hex file the data is only interpreted from begin of line to next tabulator (\t, $09). If there is no tabulator in line it is done from begin of line to next return (\n, $0A). All other parts and spaces are ignored! If there is a \ in the data part all following chars to the next tabulator (or return) are not converted. They are taken like given (good for inserting readable text). example 1: BIN data in RAM:A Hello World! call BinHEX RAM:A HEX RAM:B ONLYDATA HEX data in RAM:B 48656C6C6F20576F726C6421 example 2: HEX data in RAM:B 4865 6C6c 6f20\World! call BinHEX RAM:A HEX RAM:B MAKEBIN BIN data in RAM:A Hello World! Please report bugs, comments, suggestions, problems to me. If possible write a little mail if you use the program sometimes. If there are some enforcer hits or other problems report them as good as possible (I can't start enforcer!). Don't forget BinHex including source is Public Domain! I hope some more programmers follow the PD/Freeware idea. Shareware is good, but why pay for example 20$ for a very little utility? Please contact me: *************************************************************************** * snail-mail: Dirk Stoecker * e-mail: * * Geschwister-Scholl-Str. 10 * stoecker@rcs.urz.tu-dresden.de * * 01877 Bischofswerda * phone: * * GERMANY * GERMANY 03594/706666 * *************************************************************************** ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 4792 2652 44.6% 16-Jun-96 11:51:24 BinHex 3164 1453 54.0% 16-Jun-96 11:51:34 BinHex.readme 8080 2935 63.6% 16-Jun-96 11:51:38 +BinHex.c 512 269 47.4% 16-Jun-96 11:51:16 +SDI_ASM_functions.o 919 403 56.1% 16-Jun-96 11:51:16 +SDI_ASM_protos.h 1092 475 56.5% 16-Jun-96 11:51:16 +SDI_ASM_STD_functions.o 1211 383 68.3% 16-Jun-96 11:51:16 +SDI_ASM_STD_protos.h 3412 1405 58.8% 16-Jun-96 11:51:16 +SDI_defines.h 3936 1718 56.3% 16-Jun-96 11:51:18 +SDI_functions.o 3562 1478 58.5% 16-Jun-96 11:51:18 +SDI_protos.h 547 310 43.3% 16-Jun-96 11:51:18 +SDI_structures.h -------- ------- ----- --------- -------- 31227 13481 56.8% 22-Jun-96 23:26:02 11 files