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

dev/basic/bin2data.lha

Mirror:Random
Showing:ppc-warpupgeneric
No screenshot available
Short:V1.00 Convert file to Basic-DATAs
Author:Oliver Gantert <lucy at acity.dame.de>
Uploader:Oliver Gantert <lucy acity dame de>
Type:dev/basic
Version:1.00
Architecture:m68k-amigaos
Date:1998-11-30
Download:http://aminet.net/dev/basic/bin2data.lha - View contents
Readme:http://aminet.net/dev/basic/bin2data.readme
Downloads:942

Use this program to convert any binary file to Basic-DATAs. This is most
useful when including pictures, samples or whole executables in your
sources. You won't have to load external files anymore. Just add the
output of Bin2Data to your code, allocate some memory and POKE the
DATAs into memory.

Bin2Data may only be started from CLI
Bin2Data needs 68020 or better CPU

Usage: Bin2Data <binary file> <output file>

   binary file  -  any binary file (size<250kB)
   output file  -  ASCII textfile containing the DATAs

There are some options, of course. You'll be asked when starting the
program:

   DATAs per line    -  number of entries per DATA-line
   Formatted output  -  to understand this, have a look:

   Unformatted output looks like this (20 DATAs per line):

      DATA 0,0,3,243,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0
      DATA 0,0,0,1,35,0,0,3,233,0,0,1,35,78,85,255,188,72,231,63

   Formatted output looks like this (12 DATAs per line):

      DATA 114,   1,  72,  65,  44, 111,   0,  48,  78, 174, 253,  84
      DATA  84,  38,  64,  32,  11, 102,  18,  44,  74,  78, 174, 255


This program allocates about 250kB PUBLIC CHIP (and deallocates it after
usage, of course). I had some problems with Fastmem > 16MB, but I'll try
to fix it.


IF YouFindItUseful=TRUE THEN
   MAILTO lucy at acity.dame.de
ELSE
   DELETE Bin2Data
END IF


Contents of dev/basic/bin2data.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                17440   40780  42.8% -lh5- c77f Oct 25  1998 bin2data
[generic]                  742    1137  65.3% -lh5- 309b Oct 25  1998 Bin2Data.info
[generic]                  788    1513  52.1% -lh5- 76ff Oct 25  1998 bin2data.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files   18970   43430  43.7%            Nov 30  1998

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