Commodore PC Ms-Dos 3.2 User's Manual page 125

Table of Contents

Advertisement

n
n
n
n
n
n
n
Exe2bin
Purpose:
Converts .exe (executable) files to binary format.
Syntax:
exe2bin [drive:]pathname [drive:]pathname
Comments:
This 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 the exe2bin 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 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 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 Commands 53
Exe2bin

Advertisement

Table of Contents
loading

Table of Contents