=== BinToHunk - Version 1.0 === BinToHunk is a utility to convert a raw data file (text, bitmapped image, etc.) into an Amiga Hunk format object file. Usage: BinToHunk [] [ [ [ ]]] is the name of the input file. is the name of the output file. The default is the with a `.o' suffix. is the name of the symbol for the array that contains the data. It should start with an underscore if it is to be used from C code. The default is without a suffix and a `_' prepended. is the name of the symbol that gives the number of elements in the array. It should start with an underscore if it is to be used from C code. The default is with a `_length' appended. : -c Make hunk load into Chip RAM. -f Make hunk load into Fast RAM. -l Don't generate a length symbol. -t[] Add a terminator to the end of the array. The default is zero. -s Specify the size of the elements in the array to be bytes. If -s is not used, the default is 1. -a Make length symbol an absolute definition. This could be useful for assembly programmers. If necessary, the data will be padded with zeros to make an even number of elements in the array. === Examples === _______________________________________________________________________ / \ Command line: BinToHunk -l -t help.txt External declaration in C source code: extern char help[]; /* Zero terminated character string. */ \_______________________________________________________________________/ / \ Command line: BinToHunk -s4 image.data External declaration in C source code: extern ULONG image[]; /* Array of 32-bit words. */ extern ULONG image_length; /* 32-bit word. */ \_______________________________________________________________________/ Ray Burr - December 1, 1991 hoggle!ryb@peora.sdc.ccur.com