Download Print this page

Tandy color computer 8 basic Quick Reference Manual page 9

Advertisement

Commands
Commands
INPUT
vart,var2,...
Reads
data from the keyboard,
and
saves
it
in
one
or
more
variables.
INPUT
K3
INPUT
#-1
vart,var2,...
Reads
data from a
cassette,
and
saves
it
in
one
or
more
variables.
INPUT
#-1
,
C$
LET
Assigns a
value
to
a
variable
(optional).
LET
A3
=
27
LINE
(xhyiy{x2,y2),c,a
Draws
a
line
on
the current
low-resolution
graphics screen.
(x1,y1)
Starting point
of
line.
If
omitted the
line starts at
the
last
ending
point,
or
the center
of
the screen.
-(x2,y2)
Ending
point
of
line,
c
Defines
color (Required).
PSET
selects
current
foreground
color.
PRESET
selects current
background
color.
a
Box
action
(Optional).
If
omitted,
BASIC
draws a
line.
If
B
is
used,
BASIC
draws
a
box
using the
starting
and
ending
points
as
opposite corners
of
the box.
If
BF
is
used,
BASIC
draws
a
solid
box.
LINE
(22,33)-(27,39) ,PSET,BF
LINE
INPUT
Reads
data from the keyboard,
and
saves
it
in
a
variable.
Commas
are characters,
and
not
delimiters.
LINEINPUT
A$
LIST
11-12
Lists
specified
program
hne(s) or
the
entire
program on
the screen.
11
Lowest
line
number
to
list.
12
Highest
line
number
to
list.
11
Lists
1
line.
-12
Lists
from beginning
of
program up
to
and
including
12.
11-
Lists
from
and
including
11
to
the
end
of
the
program.
11-12
Lists
from
and
including
11
to
and
including
12.
LIST 20-45
LLIST
11-12
Lists
specified
program
hne(s) or
the
entire
program on
the
printer.
11
Lowest
line
number
to
list.
12
Highest
line
number
to
list.
11
Lists
1
line.
-12
Lists
from beginning
of
program up
to
and
including
12.
11-
Lists
from
and
including
11
to
the
end
of
the
program.
11-12
Lists
from
and
including
11
to
and
including
12.
LLIST -90
LOCATE
x,y
Moves
the high-resolution
text
screen cursor
to
position
x.y.
LOCATE 20,12
LPOKE
location,
value
Stores
a
value (0-255)
in
a
virtual
memory
location
(0-524287 decimal
or
0-S7FFFF
hexadecimal).
LPOKE 480126,241
MIDS
(s,p,f)
Replaces a
portion
of
the contents
of
string
variable s with
another
string.
s
String
being modified
p
Starting position
in
string
/
Length
of
section
being modified
MIDS (A$,4
f
3)="CAT"
10

Advertisement

loading
Need help?

Need help?

Do you have a question about the color computer 8 basic and is the answer not in the manual?