AminetAminet
Search:
84478 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/c/bintoc.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Binary to C source converter
Author:geit at gmx.de (Guido Mersmann)
Uploader:geit gmx de (Guido Mersmann)
Type:dev/c
Version:2.13
Replaces:dev/c/bintoc.lha
Architecture:ppc-morphos >= 1.4.2; m68k-amigaos >= 2.1.0; ppc-amigaos >= 4.0.0
Kurz:V2.13 Binär nach C Quellcode Konvertierter
Date:2006-05-28
Download:http://aminet.net/dev/c/bintoc.lha - View contents
Readme:http://aminet.net/dev/c/bintoc.readme
Downloads:1448

--- 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.





--- Deutsche Version ---

BinToC ist nur ein weiterer Binär nach C Konvertierter. Ich hab ihn
geschrieben,
weil ich einige Funktionen benötigte (speziell die TERM Funktion). Daher war es
einfacher schnell ein eigenes Programm zu schreiben.

Die Benutzung ist sehr einfach:

BIN/A,TO/A,BYTE/S,WORD/S,LONG/S,ARRAYNAME=AN,PERLINE=PL/N,TERMINATE=TERM/S

BIN ist die zu lesende Binär-Datei.

TO spezifiziert den zu schreibenden Header.

BYTE Der Arraytyp wird auf BYTE gesetzt ( Vor eingestellt)

WORD Der Arraytyp wird auf WORD gesetzt. (ggf. wird ein Füllbyte am Ende
verwendet)

LONG Der Arraytyp wird auf LONG gesetzt. (ggf. werden bis zu 3 Füllbytes am
Ende verwendet)

ARRAYNAME Der Name des Arrays kann mit diesem Schalter gesetzt werden.
Defaultmäßig ist das der groß geschriebene Dateiname ohne ".h", wobei "." und
"," durch "_" ersetzt werden. Ist also "Daten.h" bei TO angegeben, wird das
Array "DATEN" genannt, während "Daten.Verschieden.h" ein Array mit dem Namen
"DATEN_VERSCHIEDEN" erzeugt.

PERLINE definiert die Anzahl der Elemente pro Zeile. (Vor eingestellt ist 8).

TERMINATE hängt immer ein 0x00 an das Array ein. Sinnvoll, wenn man ASCII Texte
Binär ablegen will.




Contents of dev/c/bintoc.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 4334    6807  63.7% -lh5- a22c Apr 19 13:39 BinToC.info
[generic]                 2640    4272  61.8% -lh5- 2592 Apr 19 13:39 BinToC/Bin/BinToC_AOS68K
[generic]                 6542   14940  43.8% -lh5- 4215 Apr 19 13:39 BinToC/Bin/BinToC_AOSPPC
[generic]                 3758    8668  43.4% -lh5- f8c1 Apr 19 13:39 BinToC/Bin/BinToC_MOSPPC
[generic]                 1266    2582  49.0% -lh5- f7ca Apr 19 13:39 BinToC/BinToC.readme
[generic]                 1799    2351  76.5% -lh5- 045f Apr 19 13:39 BinToC/BinToC.readme.info
[generic]                  212     320  66.2% -lh5- c8ed Apr 19 13:39 BinToC/catalogs/deutsch/bintoc.catalog
[generic]                  203     288  70.5% -lh5- 9e72 Apr 19 13:39 BinToC/catalogs/english/bintoc.catalog
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         8 files   20754   40228  51.6%            May 28 16:59

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>