Mercurial > hg > Members > kono > nitros9-code
view docs/nitros9guide/binex.refentry @ 2772:0a3f4d8ea6d5
Found ENDC in wrong location in dwread.asm and dwwrite.asm. Corrected.
Moved the native 6309 code in dwread.asm and dwwrite.asm into the H6309 labeled area and changed IFEQ H6309 to IFNE H6309. Also moved the 57600bps 6809 code to the default location. This change had been done in the old dwread.asm and dwwrite.asm files to make it easier to follow. Though these two files were overwritten from the HDBDOS project dwread.asm and dwwrite.asm files. So this conversion needed to be done again so it made the source easier to follow.
author | drencor-xeen |
---|---|
date | Wed, 23 Jan 2013 12:36:55 -0600 |
parents | b00cf13c9f61 |
children |
line wrap: on
line source
<refentry id="binex"> <refnamediv> <refname id="binexname">BINEX</refname> <refpurpose>Convert Binary To S-Record File</refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>binex</command> <arg choice="plain"><replaceable>path1</replaceable></arg> <arg choice="plain"><replaceable>path2</replaceable></arg> </cmdsynopsis> </refsynopsisdiv> <refsect1><title>Description</title> <para> S-Record files are a type of text file that contains records that represent binary data in hexadecimal character form. This Motorola-standard format is often directly accepted by commercial PROM programmers, emulators, logic analyzers and similar devices that are interfaced RS-232 interfaces. It can also be useful for transmitting files over data links that can only handle character-type data; or to convert NitrOS-9 assembler or compiler-generated programs to load on non-NitrOS-9 systems. </para> <para> <command>Binex</command> converts "path1", a NitrOS-9 binary format file, to a new file named "path2" in S-Record format. If invoked on a non-binary load module file, a warning message is printed and the user is asked if <command>binex</command> should proceed anyway. A "Y" response means yes; any other answer will terminate the program. S-Records have a header record to store the program name for informational purposes and each data record has an absolute memory address which is not meaningful to NitrOS-9 since it uses position-independent-code. However, the S-Record format requires them so <command>binex</command> will prompt the user for a program name and starting load address. For example: </para> <screen> binex /d0/cmds/scanner scanner.S1 Enter starting address for file: <emphasis>$100</emphasis> Enter name for header record: <emphasis>scanner</emphasis> </screen> <para> To download the program to a device such as a PROM programmer (for example using serial port T1) type: </para> <screen> list scanner.S1 >/T1 </screen> </refsect1> </refentry>