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

Table of Contents

Advertisement

202 MS-DOS User's Reference
The number can be any integer value in the range from 1 to
^^
1024. It must be a decimal, octal, or hexadecimal number. Octal
numbers must have a leading zero, and hexadecimal numbers
/
v
must start with a leading zero followed by a lowercase x. For
s—^
example, 0x4B.
Minimum abbreviation: /se
,
\
Examples:
The first example sets the segment limit to 192:
,
>
link
file/se:192,, ;
The second example sets the segment limit to 255 (FFH).
{^_J
link
moda+modb 7 run/segment 5:Oxff,ab,em+mlibfp;
Using DOS Segment Order
Syntax:
,
j
The /dosseg option
/dosseg
The /dosseg option causes link to arrange all segments in the
executable file according to the ms-dos segment-ordering conven-
^
)
tion. This convention has the following rules:
■ All segments having the class name CODE are placed at the
,
\
beginning of the executable file.
^—'
■ Any other segments that do not belong to the group, DGROUP,
are placed immediately after the CODE segments.
/
\
■ All segments belonging to DGROUP are placed at the end of
the file.
U
If you do not use the /dosseg option, see the section, "Order of
Segments," later in this chapter, for an explanation of the normal
segment order.
(i
Minimum abbreviation: /do
Example:
i
j
The following command causes the linker to create an executable
file, named fileexe, whose segments are arranged according to the
ms-dos segment-ordering convention. The segments in the object
t)
files start, obj and teslobj, and any segments copied from the
libraries math, lib and common, lib, are arranged according to the
same segment-ordering convention as above.
.
j
link
start+test/dosseg,, 7math + common

Advertisement

Table of Contents
loading

Table of Contents