Download Print this page

Radio Shack TRS-80 Owner's Manual page 105

Mini-disk operation disk operating system disk basic programming language
Hide thumbs Also See for TRS-80:

Advertisement

^
^
^:%a-:^-w
a
$CMDDOS
17052/X»429C
This routine executes a
trsdos
command
and
returns
to the
caller.
Entry
Conditions
(HL)
=
Text of
trsdos
command,
terminated
by
X'OD.'
Exit
Conditions
All
registers are
changed.
Caution:
trsdos
commands
will
overlay
ram
up
to
x'6fff.'
$CMDTXT
16933/X'4225'
This
is
the
start
address of a buffer containing
the
last
command
line
entered
under
trsdos
ready. Using
this
buffer,
your
program
may
recover parameters
that
were
included
in
the
last
command
line.
For example, given
a
program
named
editor/cmd,
we
want
the
operator
to
select
an
input
file
name when
the
program
is
loaded and executed
from trsdos
ready:
trsdos
ready
editor myfile
The
program, editor, can
recover
the
name
of
the
file
in
the
scmdtxt
buffer.
Note:
On
entry
to
a
program,
(HL)
=
First
non-blank
character
following
the
program name.
$MEMEND—
17425/X'4411'
This storage
location contains the highest
address
available.
It
is
normally
the
same
as the
physical
end
of
ram,
but
you
may
change
it
for special
purposes.
The
address
is
in
lsb,
msb
sequence.
89

Advertisement

loading

This manual is also suitable for:

Model iii