Download Print this page

Tandy color computer 8 basic Quick Reference Manual page 6

Advertisement

Commands
Commands
CSAVEM
"filename",l,h,e
Saves machine-language program
filename
on
cassette.
filename
Name
of
machine-language
program
being saved.
Name
can
have as
many
as 8
'Characters
/
Lowest address
of
machine-
language program.
h
Highest
address
of
machine-
language program.
e
Exec address
of
machine-language
program.
CSAVEM "GRAPHICS ",28000, 29000,2803
2
DATA
constant,
constant,...
Stores
numeric
and
string
constants
for
use
with
READ
statement,
constant
String or
numeric
constant(s).
such
as:
127.2985
or
Beagle.
DATA
45, CAT, 98, DOG, 24.
3,
1000
DEF FN name
(variables)
=
formula
Defines a
numeric
function.
name
Name
of
function.
Must be
a
valid
variable
name.
variables
List
of
dummy
variables
used
in
formula,
formula
Defines the
operation.
DEF
FNA(B)=B*(B+(1
/B)
)
DEFUSR
n = addr
Defines the
starting
address
of
a
machine-
language
subroutine
n
Number
of
machine-language
routine
(0-9)
addr
Starting
address
of
machine-
language
routine,
(0-65535)
DEFUSR0=28032
DEL
11-12
Deletes
program
lines.
//
Lowest
line
number
to
delete.
12
Highest
line
number
to
delete
11
Deletes
1
line.
-12
Deletes
from beginning
of
program up
to
and
including
12
11-
Deletes from
and
including
11
to
the
end
of
the
program.
11-12
Deletes
from
and
including
11
to
and
including
12.
DEL 40-75
DIM
array{size),array(size),...
Dimensions one
or
more
arrays.
DIM
A$(3,10)
#
R4(22)
DRAW
string
Draws
a
line
on
the current low-resolution
graphics screen as
specified
by
string.
The
string
commands
are:
A
Angle
BM
Blank
move
C
Color
D
Down
E
45 degree
angle
F
135
degree
angle
G
225 degree
angle
H
315
degree
angle
L
Left
M
Move
draw
position
N
No
update
R
Right
S
Scale
U
Up
X
Execute
substring
DRAW
"BM128,96;U2 5;R25;D2
5; L2
5"
EDIT
line
number
Edits
a
program
line.
After
fetching specified
line
number. EDIT
recognizes
several
commands:
C
Changes
characters
D
Deletes characters
H
Hacks
off
rest of line
and
permits
insertion
I
Inserts
characters
K
Kills
rest of line
L
Lists line
being
edited
S
Searches
for
a
specified character
X
Extends
line
shTfT
t
Returns
to
line
mode
EDIT
40
END
Marks
the
end
of
a
BASIC
program,
END

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?