Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 90

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

Advertisement

TRSDOS
$CMDDOS—
17052/X'429C
This
routine
executes
a
trsdos
command
and
returns
to
the
caller.
Entry Conditions
(HL)
=
Text of
trsdos
command,
terminated
by
xod:
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
oPram,
but
you
may
change
it
for special
purposes.
The
address
is
in
lsb,
msb
sequence.
89

Advertisement

loading