annotate docs/nitros9guide/binex.refentry @ 134:52af9581ef1e

Split up the commands into individual files.
author roug
date Sun, 07 Jul 2002 08:58:56 +0000
parents
children c565a4700689
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
134
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
1 <refentry id="binex">
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
2 <refnamediv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
3 <refname id="binexname">BINEX / EXBIN</refname>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
4 <refpurpose>Convert Binary To S-Record File / Convert S-Record To Binary File</refpurpose>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
5 </refnamediv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
6
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
7 <refsynopsisdiv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
8 <cmdsynopsis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
9 <command>BINEX</command>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
10 <arg choice="plain">&replstart;path1&replend;</arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
11 <arg choice="plain">&replstart;path2&replend;</arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
12 </cmdsynopsis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
13 <cmdsynopsis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
14 <command>EXBIN</command>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
15 <arg choice="plain">&replstart;path2&replend;</arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
16 <arg choice="plain">&replstart;path1&replend;</arg>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
17 </cmdsynopsis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
18 </refsynopsisdiv>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
19
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
20 <refsect1><title>Description</title>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
21 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
22 S-Record files are a type of text file that contains records that
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
23 represent binary data in hexadecimal character form. This
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
24 Motorola-standard format is often directly accepted by commercial PROM
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
25 programmers, emulators, logic analyzers and similar devices that are
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
26 interfaced RS-232 interfaces. It can also be useful for
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
27 transmitting files over data links that can only handle character-type
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
28 data; or to convert OS-9 assembler or compiler-generated
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
29 programs to load on non-OS-9 systems.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
30 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
31 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
32 BINEX converts &quot;path1&quot;, an OS-9 binary format file, to a new file
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
33 named &quot;path2&quot; in S-Record format. If invoked on a non-binary load
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
34 module file, a warning message is printed and the user is asked if
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
35 BINEX should proceed anyway. A &quot;Y&quot; response means yes; any other
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
36 answer will terminate the program. S-Records have a header record
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
37 to store the program name for informational purposes and each data
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
38 record has an absolute memory address which is not meaningful to OS-9
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
39 since it uses position-independent-code. However, the S-Record
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
40 format requires them so BINEX will prompt the user for a program
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
41 name and starting load address. For example:
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
42 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
43 <screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
44 binex /d0/cmds/scanner scanner.S1
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
45 Enter starting address for file: <emphasis>$100</emphasis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
46 Enter name for header record: <emphasis>scanner</emphasis>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
47 </screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
48 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
49 To download the program to a device such as a PROM programmer
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
50 (for example using serial port T1) type:
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
51 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
52 <screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
53 list scanner.S1 &gt;/T1
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
54 </screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
55 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
56 EXBIN is the inverse operation; &quot;path1&quot; is assumed to be a
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
57 S-Record format text file which EXBIN converts to pure binary form on
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
58 a new file called &quot;path2&quot;. The load addresses of each data record
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
59 must describe continguous data in ascending order.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
60 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
61 <para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
62 EXBIN does not generate or check for the proper OS-9 module
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
63 headers or CRC check value required to actually load the binary
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
64 file. The IDENT or VERIFY commands can be used to check the
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
65 validity of the modules if they are to be loaded or run.
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
66 Example:
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
67 </para>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
68 <screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
69 exbin program.S1 cmds/program
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
70 </screen>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
71 </refsect1>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
72 </refentry>
52af9581ef1e Split up the commands into individual files.
roug
parents:
diff changeset
73