/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/documentation/doc_bin2txt.htm
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/documentation/doc_bin2txt.htm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 70 - (show annotations)
Sun May 24 19:53:20 2009 UTC (10 years, 6 months ago) by dbug
File MIME type: text/html
File size: 2905 byte(s)
Added the complete source code of the OSDK.
Projects files are available for Visual Studio 6 and .net, plus a Code::Blocks setup (everything works except PictConv that relies on FreeImage - which does not build correctly on mingw)
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2
3 <HTML lang=fr dir=ltr>
4 <HEAD>
5 <meta name="robots" content="noindex">
6 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
7 <title>OSDK - Bin2Txt</title>
8 <link href="documentation.css" rel="stylesheet" type="text/css">
9 </HEAD>
10
11 <BODY>
12
13 <hr>
14 <A href="documentation.htm"><img src="arrow_back.gif"></A>
15 <img src="pics/osdk_logo_small.png">
16 <hr>
17
18 <h1>Bin2Txt</h1>
19
20 <p id=chapter>Description</p>
21
22 <p>In order to deal with binary data, instead of loading them as file, you can transform
23 them in source code format and included them as normal files. Bin2Txt is a tool that can
24 transform any kind of binary file in the equivalent assembly or C source code.
25 </p>
26
27 <p id=chapter>Utilisation</p>
28
29 <p>To transform a binary file as a texte file:
30 </p>
31 <pre>
32 %OSDK%\bin\Bin2Txt [switches] binary_file text_file label_name
33 </pre>
34
35
36 <p id=chapter>Switches</p>
37
38 <p>The -s switch control the size of data:
39 </p>
40 <pre>
41 -s1 => 8 bits
42 -s2 => 16 bits
43 -s4 => 32 bits
44 </pre>
45
46 <p>The -f switch controls the output format
47 </p>
48 <pre>
49 -f1 => C output
50 -f2 => S output (assembly code)
51 -f3 => BASIC output (lines of DATA)
52 </pre>
53
54 <p>The -l switch defines the line parameters when exporting to BASIC mode. It must be followed by one or two values separated by a : character.
55 By default the numerating starts at line 10 and increase by 10 every line.
56 </p>
57 <pre>
58 -l100 => Output will start at line 100, then increase by 10 (100, 110, 120, 130, ...)
59 -l90:5 => Output will start at line 90, then increase by 5 (90, 95, 100, 105, ...)
60 </pre>
61
62 <p>The -e switch controls the endianness of the source data. This affects only the 16 and 32 bits mode.
63 </p>
64 <pre>
65 -e1 => Little Endian format (default)
66 -e2 => Big Endian format
67 </pre>
68
69 <p>The -h switch controls if the output should be done in decimal or hexadecimal.
70 </p>
71 <pre>
72 -h1 => Hexadecimal format (default)
73 -h2 => Decimal format
74 </pre>
75
76 <p>The -n switch controls the number of values to export per line
77 </p>
78 <pre>
79 -n6 => 6 values per line
80 -n16 => 16 values per line
81 -n48 => 48 valies per line
82 ... etc
83 </pre>
84
85
86 <p id=chapter>History</p>
87
88 <p>Here is the list of all releases with a short description of things that changed:
89 </p>
90
91 <p id=dateentry>Version 0.004</p>
92 - Added -f3 (Export to BASIC) output format.<br>
93 - Added -h switch to select between hexadecimal and decimal format.<br>
94 - Added -e switch to control the endianess of source data.<br>
95 - Added -l switch to control line numbering (BASIC only)<br>
96
97 <p id=dateentry>Version 0.003</p>
98 - Added -n switch to set the number of values per line.
99
100 <p id=dateentry>Version 0.001-0.002</p>
101 - First released version
102
103 <hr>
104 <A href="documentation.htm"><img src="arrow_back.gif"></A>
105 <img src="pics/osdk_logo_small.png">
106 <hr>
107
108 </BODY>
109 </HTML>
110
111

  ViewVC Help
Powered by ViewVC 1.1.26