Logo by invent (anonymous IP: 3.12.123.41,2258) | ||||||||||||||
| ||||||||||||||
Audio (343) Datatype (51) Demo (203) Development (602) Document (24) Driver (97) Emulation (149) Game (1011) Graphics (500) Library (118) Network (234) Office (66) Utility (932) Video (69) Total files: 4399 Full index file Recent index file
Amigans.net OpenAmiga Aminet IntuitionBase
Support the site
|
--- Die deutsche Version ist weiter unten --- --- English version --- BinToC is just another binary to C converter. I wrote it, because I needed additional features (especialy the TERM feature). So I decided to write my own tool. The usage is very easy: BIN/A,TO/A,BYTE/S,WORD/S,LONG/S,ARRAYNAME=AN,PERLINE=PL/N,TERMINATE=TERM/S BIN is the read file containing the binary. TO specifies the name of the #?.h file to be written. BYTE array type is BYTE (Default) WORD array type is WORD (padding byte my be added at the end) LONG array type is LONG (padding bytes my be added at the end) ARRAYNAME allows to specify the name of the array. By default this is the upper case filename without ".h" suffix. The chars "." and "," are replaced by "_". So having "data.h" specified as TO, the name of the ARRAY is "DATA", while "data.misc.h" create an array named "DATA_MISC" PERLINE defines the number of element per line. (Default is 8). TERMINATE adds a 0x00 byte at the end. Useful when dealing with text files. |
Copyright © 2004-2024 by Björn Hagström All Rights Reserved |