home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR4
/
T2B120.ZIP
/
BIN2TXT.DOC
next >
Wrap
Text File
|
1994-01-04
|
4KB
|
132 lines
BIN2TXT - Binary-to-Text Conversion Program
Version 1.00 (January 3, 1994)
Copyright 1994 Bruce Lum
DISCLAIMER
----------
The BIN2TXT program is provided "AS-IS". You use this program
strictly at your own risk. No warranty of any kind exists. The
author is not responsible for any incidental or consequential
damages to your computer or the data stored on it as a result of
misuse or the inability to run the program. By running BIN2TXT,
you agree to this.
INTRODUCTION
------------
BIN2TXT is a utility program for the IBM PC (or compatible) that
converts a binary file into a textual format. This text file can
be modified and reassembled into a binary format via the TXT2BIN
program.
COMMAND SYNTAX
--------------
To run BIN2TXT from the DOS prompt, use the following syntax:
BIN2TXT [option...] <binaryfile> <target>
where:
[option] is one or more special instructions to be used
during the conversion process;
<binaryfile> is the name of the binary file to be converted;
<target> is the name of the output text file or device.
THE CONTENTS OF THE TEXT FILE
-----------------------------
BIN2TXT generates a text file that is compatible with the TXT2BIN
format. Thus, if you make any changes, you can use the TXT2BIN
program to recreate the binary file. (See TXT2BIN.DOC for
instructions.)
The text file starts with a header area which identifies the name
of the binary file:
;-----------------------------------------------------------------
; FILENAME.EXT
;
; Converted to text format by BIN2TXT on Mon Jan 03 23:00:59 1994
;
; (Use TXT2BIN to generate the binary image)
;-----------------------------------------------------------------
Since the bytes are represented in hexadecimal format, the next
line changes the radix accordingly:
.RADIX 16 ; Set radix to HEXADECIMAL (base 16)
All the bytes in the binary file are now presented in one or more
lines. Sixteen (16) bytes, along with their ASCII character
representations, appear on each line. The starting file offset
for each line of bytes appears between the hexadecimal bytes and
the ASCII characters.
For example:
; 0 1 2 3 4 ... A B C D E F 0123456789ABCDEF
;-----------------------------------------------------------------
4D 5A 20 00 2C ... 00 00 FF FF 3A 05 ;00000 MZ .,.1. .....:.
80 00 00 00 00 ... 00 00 01 00 FB 30 ;00010 ........>......0
<-------------- BYTES ---------------> ^ <--- ASCII ---->
| CHARACTER
| REPRESENTATION
|
STARTING
FILE OFFSET
COMMAND-LINE OPTIONS
--------------------
Only one option is currently available in BIN2TXT that you can
use during the conversion process.
-q QUIET switch. This option eliminates all status and
error messages that are normally displayed on the
screen.
Example:
BIN2TXT -q INFILE.BIN OUTFILE.TXT
CORRESPONDENCE
--------------
If you have any problems, questions, or any type of feedback,
electronic mail may be sent to the author (Bruce Lum) at the
following addresses:
Compuserve: 72727,3104
Internet: 72727.3104@compuserve.com
If you are using the postal service, the address is:
Bruce Lum
P.O. Box 5098, Station A
Toronto, Ontario
CANADA M5W 1N4