Download Print this page

Radio Shack TRS-80 Owner's Manual page 123

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

Advertisement

DISK BASIC
This
command
finds
all
occurrences of a reserved
word
or other
string
literal
in
the
resident
program.
The
"finds"
are
listed
on
the display as
five-digit line
numbers.
To
search
for
any basic
reserved
word
(including reserved arithmetic operators),
use
the
keyword
as-is.
To
search
for
anything
else
(including
variable-names and
text),
enclose
the
text
inside quotes.
For example, suppose
you have
the
following
program
in
memory:
10
PRINT "THIS
IS
A
TEST"
20
INPUT "PRESS <ENTER> FOR THE NEXT PRINT MESSAGE"!
Z$
30
A
=
A
+
1
40
PRINT "+++++++"
CMD
"
X
"
>
PRINT
will find
all
occurrences of
print,
except
for
cases
where
print
was
part
of
a
quoted
string: lines
10
and
40.
CMD
"X"
i
"PRINT"
will find
all
occurrences of
"print"
as
a
string
literal:
line
20.
CMD
"K"
,
+
will
list
line
30, but
CMD
"X"
»
"
+
"
will
list
line
40.
CMD
"X"
>
"A"
will
list
lines 10,
20,
and
30.
Notice
that
variables
and
text
are
both
treated
as string
literals.
CMD
"Z"
Duplicate
Output
to
Video
and
Printer
cmd
z
"switch"
switch
is
either
on
or
or
switch
ifius-i
be
snciofeea
In
quotation
marks.
This
command
enables or
disables
dual
video/printer output.
While
the function
is
"on,"
all
video output
is
copied
to
the
printer,
and
all
printer
output
is
copied
to
the video.
(The
printer
must
be
on-line
when
you
turn
dual output
"on.")
Video
and
printer
output
may
differ
due
to intrinsic
differences
in
the printer
and
video
devices.
Examples
CMD
"Z"
»
"ON"
Turns
dual video/printer output on.
105

Advertisement

loading

This manual is also suitable for:

Model iii