Atari DOS 2.5: XF551 Owner's Manual page 62

Atari dos 2.5 disk drive
Table of Contents

Advertisement

Example 4:
For another example of a compound file
,
consider
a three-
segment
file, BIGFILE.OBJ
.
Suppose
each segment loads into
a
different area
01
memory and that-
SEG 1.0BJ
has
an INIT address
,
but no
RUN
address
;
SEG2 .0BJ has no INIT
or
RUN address
;
SEG3.0BJ has an IN
IT
address, and a RUN address for
SEG2.08J
and
,
in
addition
,
is
loaded on
top
of
SEG1 .0BJ.
When BIGFILE.OBJ
is
loaded
,
the following events
occ
ur:
1.
SEG1.0BJ
is loaded.
2.
SEG1.0BJ executes starting
al
its INIT address.
3.
SEG2.0BJ
is
loaded.
4. SEG3.0BJ
is
loaded
on
top of SEG1.0BJ.
5.
SEG3.0BJ executes
starting
at its INIT address
.
6.
SEG2.0BJ executes starting at the RUN address specified
in
SEG3.08J
.
Clearly,
this option gives you great power and
flexibility
for
creat-
ing
large files that load and execute
immediately.
ExampleS:
To convert
an
existing load-only
file to
a load-and-go
file,
you can
load the file
into memory
and
then
save
it
under a
new
filename
using the BINARY
SAVE
Menu
option
.
This
poses some prob-
lems,
as you can sometimes forget the
final
address the
file
oc-
cupies, or the file could
be
compounded with the segments not
necessarily
consecutive in
memory.
Therefore,
the new
file
would
take up
more space on
the
diskette than the old, etc. You
can
avoid
these problems by using the procedure
shown
in
the
following example.
This example
illustrates a
load file
with a
run
address of
4000
Hex
that
is
changed
to
a load-and-go
file
.
52

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents