EXE2BIN(DOS) UNIX System V EXE2BIN(DOS)
Name
exe2bin - converts .exe (executable) files to binary format
Syntax
exe2bin [drive:]pathname [drive:]pathname
Description
The exe2bin command converts .exe (executable) files to
binary format. The first pathname 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
pathname).
If you do not specify a drive name, exe2bin uses the drive
of the input file. Similarly, if you do not specify an
output filename, exe2bin uses the input filename. And
finally, if you do not specify a filename extension in the
output filename, exe2bin gives the new file the extension
.bin.
Some restrictions do apply when you use exe2bin: 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 64 Kbytes; and there must be no STACK segment.
With exe2bin, two kinds of conversions are possible,
depending on whether the initial CS:IP (Code
Segment:Instruction Pointer) is specified in the .exe file:
⊕ If the CS:IP is not specified in the .exe file, exe2bin
assumes you want a pure binary conversion. If segment
fixups are necessary (that is, if the program contains
instructions requiring 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.
⊕ If the CS:IP is 0000:100H, exe2bin assumes that the
file will run as a .com file with the location pointer
set at 100H by the assembler statement ORG (the first
100H bytes of the file are deleted). No segment fixups
are allowed, since .com files must be segment
relocatable; that is, they must assume the entry
conditions explained in the Microsoft Macro Assembler
manuals (User's Guide and Reference Manual). Once the
conversion is complete, you may rename the output file
with a .com extension. The command processor will then
be able to load and execute the program in the same way
as the .com programs supplied on your MS-DOS disk.
Notes
exe2bin is an external command.
EXE2BIN(DOS) (printed 8/16/89) EXE2BIN(DOS)