EasyManua.ls Logo

Commodore PC 20 - Page 340

Commodore PC 20
494 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1202
MS-DOS User's Reference
The /dosseg option
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
must
start
with
a leading
zero
followed
by
a
lowercase
x. For
example,
Ox4B.
Minimum abbreviation: Ise
Examples:
The
first example sets
the
segment
limit
to
192:
link
file/se:192,,;
The
second
example
sets
the
segment
limit
to
255
(FFH).
link
moda+modb,run/segments:Oxff,ab,em+mlibfp;
USing DOS Segment Order
Syntax:
/dosseg
The
Idosseg
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.
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.
Minimum abbreviation:
Ido
Example:
The
following
command
causes
the
linker
to
create
an
executable
file, namedfile.exe,
whose
segments are arranged
according
to
the
MS·
DOS segment-ordering convention.
The
segments
in
the
object
files start.obj and test.obj, and any segments
copied
from
the
libraries math.
lib
and
common.lib,
are
arranged
according
to
the
same segment-ordering
convention
as above.
link
start+test/dosseg",math+common
c

Table of Contents

Related product manuals