EasyManua.ls Logo

Radio Shack TRS-80 Model 4

Radio Shack TRS-80 Model 4
418 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...
Line
number
"
11£'1£'
110
120
130
141£'
151£'
BASIC
COIO~~~~:~BASIC
statement
Istatement
state~
~~
,
CLS:
PRINT
"NORMAL
MODE
•••
"
PRINT
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
FOR
I = 1
TO
1001£':
NEXT
I
CLS:
PRINT
CHR$(23) j "DOUBLE-SIZE
MODE
•••
II
PRINT
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
END
When BASIC executes a program, it handles the statements one at a
time,
startil1g with the first and proceeding to the last. Some
statements, such
as
GOTO,
ON
...
GOTO, GOSUB, change this
sequence.
Statements
A statement is a complex instruction to BASIC, telling the computer to
perform specific operations. For example:
GO
TO
11£'1£'
tells the computer
to
perform the operations of
(1)
locating line 100,
(2)
transferring control to that line and
(3)
executing the statement(s)
on
that line.
END
tells the computer to perform the operation of ending execution of the
program.
Many statements instruct the computer to perform operations with
data. For example,
in
the statement:
PRINTIISEPTEMBER
REPORT"
the data is SEPTEMBER REPORT. The statement instructs the
computer to print the data inside quotes.
Expressions
An expression is actually a general term for data. There are four
types of expressions:
1.
Numeric expressions, which are composed of numeric data.
Examples:
(1
+
5.2>13
o
5*B
3.7882
ABS(X) +
RND(I£')
SIN(3
+
E)
2-26

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals