Download Print this page

Motorola EXORdisk II User Manual page 388

Advertisement

OTHER SYSTEM FUNCTIONS
27.5 -- Other Functions
adJusted .to
~eTlect
the end of a loaded program
(onl~
iT the
program is loaded
directl~
from the command line or
via
the
LOAD
c omman'd
wi
th
out
th e
"U"
or
"V"
00
t
i
on>.
Thus,
th e
program can obtain information about the re~aining amounts of
memory without having to size memory itself.
ENTRY PARAMETERS:
EXIT CONDITIONS:
B
contains a function code that specifies
the action to
be
taken
by
.ALUSM.
The
following
function
codes
(and
their impact the the
X
register)
are
defined:
B
=
0
indicates
that
the
X
registeT'
contains
the
add,..ess
of
the
last
address
that is to be made a part
of
the
cUl"-rent use'!'
program
aT"
e~1iL
B
=
1
indicates
that
the
contains
the
number
memory that
a~e
to
be
the.end of the current
X
~egister
or
bytes
of
allocated
to
use-r program.
B
=
2
indicates that all
of
the remaining
contiguous memo'T'Y
is to be
allocated
to the current user program aT'ea.
X
contains
the
'parameters .as described.
above.
A
is unchanged.
B
contains
the
return
following
.retu-rn
defined:
status.
statuses
The
are
B
=
0
indicates that no
e-rrors
occurred
(normal return).
B
=
1
indicates
that
the
allocation
request would have caused
ENDUS$
to
be
greate-r
than
ENDSY$.
Th e user
program area cannot extend beyond the
~nd
of
contiguous
memor~
in
the
system.
B
=
2
indicates
that
the
allocation
re~uest
would
have caused
ENDUS$
to
bel ess than or equal to
ENDOS$.
The
allocated
memory
block
must
~eside
completely
above
the
address
con~ained
in
ENDOS$.
X
contains
an indeterminate value if an
error occurred (exit value of
B
not
Page
27-41

Advertisement

loading

This manual is also suitable for:

Exordisk iii