EasyManua.ls Logo

Radio Shack TRS-80

Radio Shack TRS-80
236 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
There's More?
In
addition,
your Radio Shack
Interpreter
allows you to put more than one statement on
each numbered line, separating
them
by a colon
(:).
For
example,
a timer loop
such as:
100 FOR N
=
1 TO 500
X10
NEXT
N
becomes . . .
100
FOR
N
=
1
TO
500:NEXT N
. .
.
shorter still . . .
100 F.N
=1TO500 :N.N
...
or even less space . . .
100F.N
=1TO500:N.N
The last listing
can be entered into the Computer as shown, with no space between
the line
number and
the
first letter, but the Computer will
automatically
insert a space. Entering it
this way does
conserve the one extra space
that you have been
inserting
to
this time,
however.
Caveat Emptor
(Don't buy a used chariot
from a stranger.)
Control yourself! It's
easy to
get carried away.
While
we
will
be
using both Radio
Shack
Shorthand and multiple statement lines
often
from here on, you
will
quickly see
that it's
possible to pack
the information so
tightly
that it
becomes
hard to read, and
also
very hard
to modify.
For most of this
Manual we
will avoid multiple
statement
lines, but when we
want to
really pack it
tight
this is the only way to go!
More Caveat (or is
it more Emptor?)
Radio
Shack Level I
Shorthand is
nearly
foolproof.
(Knowing
some of our
customers, we
can't
give
an
unconditional
guarantee;
or, to
broaden
our
coverage,
let's say
we
know
ourselves well enough,
too!), but
multiple statement
lines require
careful
understanding.
Especially critical are
statements
of the
IF-THEN
variety.
Enter
the
following
program:
96
.-:
Tfet:
snathe*
sp^easaver
involves
the IF-THEN
stat^meitfc The
use *rf THEN is
stomal.
That Is,
instead of
''::''
'({':-•'.
\''.-0"'-. :
r
:
---'-
:
.'..-.
-.
IF (condition)
THEN
(statement)
it's
perfectly
okay to.
write
IF (condition) (statement)
;
An
example
of.
this would
be;
,
S-
10 IF A-2© stof;
Note that yon cant
sav
IF
(condition)
(line
number).
Yost
have
to
add
eitaerTHEN
or SOT©:
IF (condition)
G. (line-number)
IF
{condition)
T, (line- number)
1

Other manuals for Radio Shack TRS-80

Related product manuals