Download Latest Version d2inc-v1.0.0-beta.2.tar.bz2 (118.4 kB)
Email in envelope

Get an email when there's a new version of d2inc

Home
Name Modified Size InfoDownloads / Week
d2inc-v1.0.0-beta.2.tar.bz2 2018-12-28 118.4 kB
README.txt 2018-12-28 3.6 kB
d2inc-v1.0.0-beta.1.tar.bz2 2018-12-27 118.6 kB
Totals: 3 Items   240.5 kB 0
Introduction:
=============
d2inc is a command line tool to convert binary data to array declaration for various programming languages.

Example:
--------
	A binary file whose data is:

              00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
              -----------------------------------------------
00000000: |   98 B3 D6 70 9B BA 77 78 B3 08 12 0D C0 F3 9C CC | . . . p . . w x . . . . . . . . 
00000010: |   9E 38 5D 6B 31 A3 7C EB FB 4C 7C 41 46 A0 2D F9 | . 8 ] k 1 . | . . L | A F . - . 
00000020: |   7E A2 A5 20 87 A1 CC EB 2D CC 29 CF B2 38 BE D3 | ~ . .   . . . . - . ) . . 8 . . 
00000030: |   8E E9 AE 1D 5F 1C 66 06 92 8E 5D A0 6F 2A BC 56 | . . . . _ . f . . . ] . o * . V 
00000040: |   C3 12 E0 A4 CB A7 81 C0 4C 61 CC B0 D8 F3 50 0E | . . . . . . . . L a . . . . P . 
00000050: |   DB A5 A7 06 22 3D C2 D0 9F C7 6D 4E 89 F3 4A D5 | . . . . " = . . . . m N . . J . 
00000060: |   B3 9D C1 B1 10 45 9B B4 37 15 3D DE 73 74 B4 F1 | . . . . . E . . 7 . = . s t . . 
00000070: |   C4 FF 27 58 68 81 84 5B B1 B0 10 FE 31 A6 45 1D | . . ' X h . . [ . . . . 1 . E . 

	Can be converted to (Pascal syntax):

AnArray: array[0..128-1] of byte = (
                $98, $B3, $D6, $70, $9B, $BA, $77, $78, $B3, $08, $12, $0D, $C0, $F3, $9C, $CC,
                $9E, $38, $5D, $6B, $31, $A3, $7C, $EB, $FB, $4C, $7C, $41, $46, $A0, $2D, $F9,
                $7E, $A2, $A5, $20, $87, $A1, $CC, $EB, $2D, $CC, $29, $CF, $B2, $38, $BE, $D3,
                $8E, $E9, $AE, $1D, $5F, $1C, $66, $06, $92, $8E, $5D, $A0, $6F, $2A, $BC, $56,
                $C3, $12, $E0, $A4, $CB, $A7, $81, $C0, $4C, $61, $CC, $B0, $D8, $F3, $50, $0E,
                $DB, $A5, $A7, $06, $22, $3D, $C2, $D0, $9F, $C7, $6D, $4E, $89, $F3, $4A, $D5,
                $B3, $9D, $C1, $B1, $10, $45, $9B, $B4, $37, $15, $3D, $DE, $73, $74, $B4, $F1,
                $C4, $FF, $27, $58, $68, $81, $84, $5B, $B1, $B0, $10, $FE, $31, $A6, $45, $1D
                );

	Or a text file whose contents are:

one
two
three
four
five

	Can be converted to (Pascal syntax):

AnArray: array[0..5-1] of string = (
                'one', 'two', 'three',
                'four', 'five'
                );

Supported input data for current version are:
---------------------------------------------
	Integer as string, string, byte, word, dword, qword.

Supported programming languages for current version are:
--------------------------------------------------------
	*Assembly, C, Pascal.

* Assembler support for generated arrays may vary. Suggestions for specific assemblers support are welcome.


Compilation instructions:
=========================
Required software:
------------------
	Free Pascal Compiler (FPC) version 3.0.4 (may work with other versions [untested]).
	GNU make.

Instructions (Linux):
---------------------
	When all required software is installed go to the program's source directory and run:

	make
	# make install

Note(s):
--------
	'#' means: To run as root (administrator) is required.


General notes:
==============
This currently is beta (untested) software and may contain (very) dangerous bugs.

If you have found bugs or have any suggestions, please send an e-mail to:

	bugs368@pm.me

Your message is appreciated! :)


Supported operating systems:
============================
Linux, Windows or any other which is supported by the 'Free Pascal Compiler' (FPC).


Release notes:
==============
2018-12-28: v1.0.0-beta.2
-------------------------
	* Fixed end of line bug.

2018-12-27: v1.0.0-beta.1
-------------------------
	* First beta release!
Source: README.txt, updated 2018-12-28