EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 23

Radio Shack TRS-80 Model III
274 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...
OPERATION
Program
Line
A program line
consists
of a line number
in
the
range
[0,65529],
followed
by one or
more
statements
separated
by colons.
When
you
press
(ENTER)
, the line is stored
in
the program
text area of memory
,
along
with any
other lines
you
have
entered
this
way
.
The program is
not executed
until
you
type RUN
or
another
execute
command
.
For
example:
1
00
CLS: PRINT
"THE SQUARE
ROOT OF 2 IS"; SQR(2)
is a
program line. When
you press
(ENTER) . BASIC stores it
in the program
text area.
To execute
it,
type:
RUN
(ENTER)
Special
Keys
in
the
Immediate
Mode
CD
The question
mark can
stand for the
commonly
used keyword
PRINT.
For example,
the immediate line:
? "HELLO."
is
the
same
as
the immediate
line:
PRINT
"HELLO."
Note: L?
does
not mean LPRINT.
This
abbreviation
can be
used in a program,
too.
O
The period can
stand for
' 'current program
line
",
i
. e
.,
the last
program
line
entered or edited.
The period
can be used
in most
places
where
a line
number would normally
appear.
For example,
the immediate
line:
LIST.
tells
BASIC to list
the current
program line.
CD
The
single-quote
tells BASIC
to ignore
the rest of the logical
line.
It
is an
abbreviation
for
the BASIC keyword
REM. When
used in a
multi-statement
line, it
does not have
to be preceded
by a colon.
For
example,
when
you type in
the line:
PRINT
1 +
1;
'2
+ 2
BASIC
will print
the sum 1
+
1
but not
2 +
2
.
This
abbreviation
can be used in
a program,
too.
(SHIFT)CDCD
Causes
the Computer
to print
the Display contents
to the line
printer,
if available.
Press
(BREAK)
to
interrupt
this operation . This
key
sequence works
in
the other modes
too. Note: You must use
the lefthand
(SHIFT)
kev.
13

Other manuals for Radio Shack TRS-80 Model III

Related product manuals