Commands
Commands
HGET
{sx,sy)-{ex,ey),buffer
Stores a rectangle
that
is
on
the high-resolution
graphics screen
into
a
buffer previously
set
up
by
the
HBUFF command
for
future
use by
the
HPUT
command.
sx,sy
First
corner
of
rectangle
ex,ey
Opposite corner
of
rectangle
buffer
Number
of
buffer
HGET
(21
f
32)-(28,37)
,1
HLINE
(x1,y1)-(x2,y2),c,a
Draws
a
line
on
the high-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
HLINE.
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.
HLINE
(22
f
33)-(100
f
90)
,3,BF
HPAINT
(x,y),c1,c2
Paints
an
area
on
the high-resolution
graphics
screen.
x,y
Starting point
d
Paint color
c2
Border
color
HPAINT (55,66)
,2,3
HPRINT
(x,y),message
Prints
message
on
high-resolution
graphics
screen.
x,y
Starting
character
position
message
String
to print
HPRINT (20,12) /'HELLO!"
HPUT
(sx,sy)-(ex,ey),b,a
Copies
graphics from a
buffer
to
a rectangle
on
the high-resolution
graphics
screen.
sx,sy
First
corner
of
rectangle
ex,ey
Opposite corner
of
rectangle
b
Buffer
number
a
Action used. Actions include:
PSET,
PRESET
AND,
OR,
NOT
HPUT
<22,33)-(28,37)
,1
,PSET
HRESET
(x,y)
Resets
a
point
on
the
high-resolution
graphics
screen
to
the
background
color.
HRESET (22,33)
HSCREEN mode
Selects
a
high-resolution
graphics screen
mode.
Modes
1-4
also clear the high-resolution
graphics
screen.
mode
Mode
number.
Mode
numbers
are:
—
Low
resolution
1
—
320
X
192, 4-coior
2
-
320 X
192, 16-color
3
—
640
X
192, 2-color
4
—
640
X
192, 4-color
HSCREEN
4
HSET
(x,y,c)
Sets
point x,y
on
the high-resolution
graphics
screen
to
Color
c.
If
you
omit
c,
BASIC
uses
the
foreground
color.
HSET (22,33,2)
HSTAT
v1,v2,v3,v4
Returns
information
regarding the
high-resolution
text
screen
cursor
to
variables v1,v2,v3,
and
v4.
v1
Character
code
v2
Character
attribute
v3
Cursor
X
coordinate
v4
Cursor
Y
coordinate
HSTAT C,A,X,Y
IF test
THEN
m
ELSE
02
Performs a
test.
If
the
results
are
true,
the
computer
executes
the
first
instruction
(#1).
If
the
results
are
false,
the
computer
executes
the
second
instruction
(#2).
IF
A<N THEN PRINT "A<N" ELSE PRINT "A>
=
N"
Need help?
Do you have a question about the color computer 8 basic and is the answer not in the manual?