Exe2bin
Purpose:
Converts .exe (executable) files
to
binary format.
Syntax:
ex:e2bin
[drive:
)patbname
[drive:
)patbname
Comments:
This command converts. exe
(executable)
files
to
binary format.
The first
patbtlame
is
the input file;
if
you
do
not
specify an
extension, it defaults
to
.exe. The input file is converted
to
a .
bin
file format
(a
memory image
of
the
program) and placed in
the
output file
(the
second patbname).
If
you
do
not
specify a drive name, ex:e2bin uses the drive
of
the
input file. Similarly,
if
you
do
not specify an output filename,
ex:e2bin uses
the
input filename. And finally,
if
you
do
not
specify
a filename extension in
the
output
filename, ex:e2bin gives
the
new
file
the
extension .bin.
Some;
restrictions
do
apply
when
you use
the
ex:e2bin command:
the
input file must
be
in valid .exe format produced
by
the
linker;
the
resident,
or
actual
code
and data
part
of
the
file must
be
less
than 64K; and there must
be
no
STACK
segment.
With ex:e2bin, two kinds
of
conversions are
pOSSible,
depending
on
whether
the
initial CS:IP
(Code
Segment:lnstruction Pointer)
is specified in the .exe file:
•
If
the
CS:IP is not specified in
the
.exe file, ex:e2bin assumes
you want a
pure
binary conversion.
If
segment fixups are
necessary (that
is,
if
the
program contains instructions requir-
ing segment relocation),
the
command E prompts you for
the
fixup value. This value is
the
absolute segment at which
the
program is
to
be loaded. The resulting program will
be
usable
only
when
loaded at
the
absolute memory address specified by
your application. The command processor
will
not
be
able
to
load the program.
MS-DOS
comman~s
531
Exe2bin