Download Print this page

Tandy color computer 8 basic Quick Reference Manual page 7

Advertisement

Commands
Commands
EXEC
{address)
Transfers control
to
a
machine-language program
at
address.
If
address
is
omitted, control
is
transferred
to
address
set
in
the
last
CLOADM.
EXEC 28032
FOR
variable
=
n1
TO
r\2
STEP
n3
Defines
the
beginning
of
a
loop.
The end
is
specified
by NEXT,
variable
Loop
counter
variable
n1
Starting
value
of
counter
n2
Ending
value
of
counter
n3
Increment
or
decrement
value
of
counter
FOR
Z
=
35 TO 125
STEP
5
GET
{sx,sy)-{ex,ey),array,G
Stores a rectangle
that
is
on
the
low-resolution
graphics screen
in
an
array,
for
future
use by
the
PUT
command.
sx,sy
First
corner
of
rectangle
ex,ey
Opposite corner
of
rectangle
array
Two
dimensional
array
G
Selects
full
graphic
detail
storage.
Requires use
of
PSET,
PRESET,
AND, OR,
or
NOT
when
using
PUT
GET
(22,34>-<47,38)
,M,G
GOSUB
line
number
Calls
a subroutine beginning
at
the specified
line
number.
GOSUB 330
GOTO
line
number
Jumps
to
the specified
line
number,
GOTO
125
HBUFF
buffer,size
Reserves an
area
in
memory
for
high-resolution
graphics.
buffer
Number
of
buffer
selected
size
Defines
buffer
size.
BASIC
allows
a
buffer
to
have
a
maximum
size
of
7931.
HBUFF
1
,65
HCIRCLE
(x,y),r,c,h,s,e
Draws
;
a
circle
on
the high-resolution
graphics
screen.
*.y
Center
point
r
Radius
c
Color
h
Height/width
ratio
s
Starting point
e
Ending
point
HCIRCLE
(55,64) ,20,2,3,
.4,
.7
HCLSc
Clears the
high-resolution
graphics screen
to
a
specified
color.
c
Color
If
unspecified,
BASIC
uses
current
background
color.
HCLS
2
HCOLOR
c1,c2
Sets
foreground
and background
color
on
the
high-resolution
graphics
screen.
d
Foreground
color
(0-15)
c2
Background
color
(0-15)
HCOLOR
2,3
HDRAW
string
Draws
a
line
on
the high-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
HDRAW "BM128,
96
;U25;R25;D25;L25"

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?

Subscribe to Our Youtube Channel