Atari DOS 2.5: XF551 Owner's Manual page 58

Atari dos 2.5 disk drive
Table of Contents

Advertisement

since it
loads
into the computer but
will
not execute until a
RUN
AT ADDRESS command is given
.
Header
Decimal
Hex
Byte
#
Number
Number
Description
#1
255
FF
Identification
code for
#2
255
FF
binary load file
#3
0
00
Starting address (LSB)
#4
60
3C
(MSB)
#5
255
FF
Ending
address
(LSB)
#6
91
58
(MSB)
File data segment contains
8192 (Dec) bytes
of
data.
In
general
,
the
RUN
address parameter defines the point
in
a
program where execution will begin as soon as a whole file is
loaded into RAM
(i.e.,
when
End
of File is reached).
For
this rea-
son
there
can
only be one effective
RUN
address even if a file is
a compound file. For
example, a
file
could
be made up of several
small
files appended together
with
each of the
original
small
files
having their
own
RUN address.
In
this
case,
only
the last
RUN
address to be loaded would execute .·
If
an INIT address is
specified,
then as
soon
as the actual ad-
dress gets
loaded
into RAM
,
Ihe
code
thai
il
points to
will
be exe-
cuted
.
This is true even if the file
is
made up
of
severalload-and-
go files appended together.
In
such a case
,
each
load-and-go
segment
that has an
INIT
address
specified
will be executed
when the
INIT
address is loaded
. Thus,
each segment would
load and be executed before the
next
segment would be
loaded
,
etc
.••
Execution of code pointed to by any
INIT
address always
precedes the execution
of
any code pointed to by a RU N
address.
Files created by the Assembler Editor cartridge using the load-
and-go option can be stored in the desired
INIT
and
RUN
ad-
dresses in
your
code followed by the code to
be
controlled. The
RUN address is always slored in
Localions
2EO
(LOW)
and 2E1
• An
RTS
(RETURN)
at
the
end of a
program
will always return control
to DOS
.
•• Each
code segment must end
with
an
RTS (RETURN
) if
the next
segment
is
to
be
loaded or,
if
desired, returned
to
005 control.
48

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents